peony2012 / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

Regex matcher bug in Condition #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
All string type matching of condition's is done using a regex matcher. The 
regex is compiled using a value specified against the condition. E.g. for the 
condition specified underneath, the regex looks like "5".
<condition type="parameter" name="id">5</condition>

The value of parameter id is matched against this pattern for incoming 
requests. For obvious reasons, "5" will match "50", "51", "52" etc. This is an 
inconsistent behavior. One of the possible fixes could be to make it an exact 
pattern i.e. "^5$".

Original issue reported on code.google.com by avl...@gmail.com on 13 Oct 2010 at 5:39