added preg_quote to $filter input
This commit is contained in:
parent
57e7559c1b
commit
2326033e79
@ -76,7 +76,7 @@ class MetadataFilter extends \FilterIterator implements \Countable
|
|||||||
$metadata = $it->current();
|
$metadata = $it->current();
|
||||||
|
|
||||||
foreach ($this->filter as $filter) {
|
foreach ($this->filter as $filter) {
|
||||||
if (preg_match("/$filter/", $metadata->name, $m)) {
|
if (preg_match("/".preg_quote($filter)."/", $metadata->name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user