enygma / expose

An Intrusion Detection System library loosely based on PHP IDS
MIT License
266 stars 55 forks source link

Allow wildcard expressions for exceptions #14

Closed lstrojny closed 11 years ago

lstrojny commented 11 years ago

As a technical user of expose, I would like to use wildcards when specifying wildcards.

h3. Example:

$manager->setException('foo.*.__utmz');

This would exclude every element that is one level below "foo". AMQP uses "#" for zero or one and "*" for one. Following that convention might be easier than glob expressions.

enygma commented 11 years ago

Rather than limit it to just a wildcard to match one thing, I opted to make the exceptions regex-able. This should make it easier to do more complex matching than just a simple wildcard.