preg_quote'd $fileName to avoid issues when using a special character in their schema filename

This commit is contained in:
bigclick 2011-11-21 13:19:57 +11:00
parent 7a68f7fed1
commit 037f2c016e

View file

@ -170,7 +170,7 @@ class SchemaShell extends Shell {
$count = 0;
if (!empty($result[1])) {
foreach ($result[1] as $file) {
if (preg_match('/'.$fileName.'(?:[_\d]*)?\.php$/', $file)) {
if (preg_match('/'.preg_quote($fileName).'(?:[_\d]*)?\.php$/', $file)) {
$count++;
}
}