Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Chained, slashes, and escaping
 

Index | Next | Previous | View Flat


jspath at pangeamedia

Mar 5, 2007, 12:33 PM


Views: 408
Permalink
Chained, slashes, and escaping

I'm implementing tagging under Catalyst and want to be as unrestrictive
as possible on the tag text. As such, I allow slashes in the tag text.

To view information on a given tag, you hit the following path:

/tag/URI_ESCAPED_TAG

Which uses the following action in the Tag controller:

sub view : PathPart('tag') Chained('/') Args {
my ($self, $c, $tag) = @_;

To test and make sure the escaping is working properly I created the
following tag:

sl/ashes

When I access the following URI:

/tag/sl%2Fashes

$tag gets set to sl instead of sl/ashes.

Chained appears to be using the unescaped path when it looks for the
separator instead of the actual path.

Is this a bug or a feature? How can I work around it?

- Jim

_______________________________________________
List: Catalyst[at]lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Chained, slashes, and escaping jspath at pangeamedia Mar 5, 2007, 12:33 PM
    Re: Chained, slashes, and escaping hutchinson.chris at gmail Mar 5, 2007, 8:46 PM
    Re: Chained, slashes, and escaping jon at jrock Mar 5, 2007, 9:10 PM
        Re: Chained, slashes, and escaping pagaltzis at gmx Mar 6, 2007, 5:09 AM
        Re: Chained, slashes, and escaping catalyst at fadetoblack Mar 6, 2007, 5:13 AM
            Re: Chained, slashes, and escaping jspath at pangeamedia Mar 6, 2007, 6:13 AM
    Re: Chained, slashes, and escaping matt.lawrence at ymogen Mar 6, 2007, 2:00 AM
        Re: Chained, slashes, and escaping jspath at pangeamedia Mar 6, 2007, 6:14 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.