Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

preg_quote'd $fileName to avoid issues when using a special character…

… in their schema filename
  • Loading branch information...
commit 037f2c016e20ecad0c6148abcc892eff0244f0be 1 parent 7a68f7f
bigclick authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Console/Command/SchemaShell.php
View
2  lib/Cake/Console/Command/SchemaShell.php
@@ -170,7 +170,7 @@ public function generate() {
$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++;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.