From 2326033e797d9d64d7d600add77c3ed0568240b9 Mon Sep 17 00:00:00 2001 From: catalin Date: Tue, 6 Nov 2012 22:21:58 +0200 Subject: [PATCH] added preg_quote to $filter input --- lib/Doctrine/ORM/Tools/Console/MetadataFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php b/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php index 4602573e2..52a826418 100644 --- a/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php +++ b/lib/Doctrine/ORM/Tools/Console/MetadataFilter.php @@ -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; } }