Unfortunately I'm using lighttpd.

Carl Johnstone wrote:
When I access the following URI:

/tag/sl%2Fashes

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

Apparently back in the early days of the web, a URL like that caused problems

I ran into this a couple of weeks ago. As far as I could the development myapp_server actually deals with everything correctly.

In Apache:

You can now allow encoded slashes in Apache > 2.0.46 with:

 AllowEncodedSlashes On


If you're using mod_perl though, when Catalyst fetches the URI from apache it requests the parsed vesion so for your example would get back /tag/sl/ashes

You can customise Catalyst::Engine::Apache to use unparsed_uri and split off the query string - which seems to work OK for my simple case, but I didn't test any further.

See:

http://lists.scsys.co.uk/pipermail/catalyst-dev/2007-February/000578.html

Carl

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

Reply via email to