[Catalyst] Chained, slashes, and escaping

Jonathan Rockway jon at jrock.us
Tue Mar 6 05:10:20 GMT 2007


On Monday 05 March 2007 14:33, Jim Spath 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 
with poorly written CGI scripts that blindly opened the PATH_INFO variable.  
Instead of fixing the scripts, the apache / NCSA HTTPD authors decided to 
break the URL spec for the rest of forever.

http://mail-archives.apache.org/mod_mbox/httpd-dev/199612.mbox/%3C9612031142.aa27069@paris.ics.uci.edu%3E

11 years later, the web is still broken (for backwards compatibility, of 
course).

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;



More information about the Catalyst mailing list