Comment 3 for bug 446411

Revision history for this message
Xavier Brochard (xavier) wrote : Re: [Bug 446411] Re: Script part url can't contains upper case letters

Hi Malcolm

I should have detailed my tests ;-)
It was tested with most current Actions on woda.
tested also with:
http://woda/DemoS/news.cgi/Action
http://woda/DEMOS/news.cgi/Action
and still working :)

NB: my first regexp was m|^/[A-Z][^/]+| but it doesn't work, and I don't
understand why.

xavier

Le jeudi 28 janvier 2010 01:55:21, vous avez écrit :
> Hi Xavier,
>
> I think you may have forgotten the most common case:
>
> What about this url? : http://woda/Demos/news.cgi/Search
>
> Malcolm
>
> On 28/01/2010, at 3:31 AM, Xavier Brochard wrote:
> > This is a possible fix:
> > change:
> > elsif ( $ENV{'SCRIPT_NAME'} =~ m|^/[A-Z]| )
> > to something that will check for uppercase characters, followed by
> > everything but a slash: elsif ( $ENV{'SCRIPT_NAME'} =~ m|^/[A-Z]!/+| )
> >
> > Tested against these urls:
> > http://woda/Demos/news.cgi woda supplied demo script
> > http://woda/db/use/x1930 database created from web interface
> >
> > And of course, it works :-)
> > But it should be tested also with redirected urls using ScriptAliasMatch
>

Xavier
<email address hidden> - 09 54 06 16 26