1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-19 07:00:14 +01:00

[ticket/13250] Use faster str_replace() instead of preg_replace()

PHPBB3-13250
This commit is contained in:
Marc Alexander 2017-01-22 17:22:28 +01:00
parent 6c09910c10
commit fbff3b77bd
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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);
}
}