Paul found it in MongoDB? query when using the slower regex code, but I've confirmed the same issue exists for the PurePerl? regex engine.

so

SEARCH{"form.name='TaxonProfile/Builder.TermForm'" results in qr/(?-xism:%META:FORM{.*\\bname=\\"TaxonProfile\\\\\\/Builder\\.TermForm\\")/

which is about a bajillion too many =/='s

this bug probably covers all versions :/

I'll add some unit testage for it.

-- SvenDowideit - 19 Jan 2011

it seems there is some old code in PurePerl? that i don't grok, and doesn't seem to have aunit test covering for.

<SvenDowideit>               # Escape /, used as delimiter. This also blocks any attempt to use
<SvenDowideit>               # the search string to execute programs on the server.
<SvenDowideit>                 $raw_searchString =~ s!/!\\/!g;

the regex fails to escape the /, instead adding an escaped \

i'll commit removing on \ and a unit test for this task and we'll see if anyone notices anything.

-- SvenDowideit - 19 Jan 2011
 

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads