Friday, September 25, 2009, 4:39:33 PM, Hans wrote:
> On the other hand I could try in the script:
> if ($_REQUEST['fmt']=='extract') {
> do something with $_REQUEST...
> }
this works, and it needs just one preg_replace.
But i think i discovered a bug in FmtPageList, or maybe a feature?
the code reads:
# Handle "group/" at the beginning of the form-submitted request
if (preg_match("!^($GroupPattern(\\|$GroupPattern)*)?/!i", $rq, $match)) {
......
The 'i' modifier in the regex treats it case-insensitive, even though
$GroupPattern starts with an upper case letter.
so input of 'main/apples' is the same as 'Main/apples',
although the group is 'Main'.
That's why 'scripts/auth' does not work.
Without the 'i' modifier input 'scrips/auth' will work.
Can we do without the 'i' modifier, or serves it a good purpose?
Hans
_______________________________________________
pmwiki-devel mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel