apache / incubator-ponymail

Apache Pony Mail (Incubating) - Email for Ponies & People
http://ponymail.incubator.apache.org/
Other
80 stars 30 forks source link

Bug: stats.lua - inconsistent use of anchors in match patterns #116

Open sebbASF opened 8 years ago

sebbASF commented 8 years ago

The stats.lua script uses string:match() lots of times when processing query parameters.

In most cases the regex is not anchored, which means that the parameter can contain additional characters. This may cause unexpected behaviour, especially if the parameter is matched more than once with different REs.

sebbASF commented 7 years ago

However note that some parameters may contain sub-patterns, for example:

&d=dfr=2000-3-31|dto=2000-5-31