mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
preg_quote'd $fileName to avoid issues when using a special character in their schema filename
This commit is contained in:
parent
7a68f7fed1
commit
037f2c016e
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue