1
0
mirror of synced 2025-01-08 10:07:10 +03:00

added preg_quote to $filter input

This commit is contained in:
catalin 2012-11-06 22:21:58 +02:00 committed by Benjamin Eberlei
parent 57e7559c1b
commit 2326033e79

View File

@ -76,7 +76,7 @@ class MetadataFilter extends \FilterIterator implements \Countable
$metadata = $it->current();
foreach ($this->filter as $filter) {
if (preg_match("/$filter/", $metadata->name, $m)) {
if (preg_match("/".preg_quote($filter)."/", $metadata->name)) {
return true;
}
}