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
>
Hi Malcolm
I should have detailed my tests ;-) woda/DemoS/ news.cgi/ Action woda/DEMOS/ news.cgi/ Action
It was tested with most current Actions on woda.
tested also with:
http://
http://
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 : woda/Demos/ news.cgi/ Search woda/Demos/ news.cgi woda supplied demo script woda/db/ use/x1930 database created from web interface
> Hi Xavier,
>
> I think you may have forgotten the most common case:
>
> What about this url? : http://
>
> 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://
> > http://
> >
> > 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