mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13250] Use faster str_replace() instead of preg_replace()
PHPBB3-13250
This commit is contained in:
parent
6c09910c10
commit
fbff3b77bd
1 changed files with 1 additions and 1 deletions
2
phpBB/phpbb/cache/driver/file.php
vendored
2
phpBB/phpbb/cache/driver/file.php
vendored
|
@ -601,6 +601,6 @@ class file extends \phpbb\cache\driver\base
|
|||
*/
|
||||
protected function clean_varname($varname)
|
||||
{
|
||||
return preg_replace('#[\\\\\\\/]#', '-', $varname);
|
||||
return str_replace(array('/', '\\'), '-', $varname);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue