Skip to content

Commit

Permalink
Merge pull request phpbb#4660 from marc1706/ticket/13250
Browse files Browse the repository at this point in the history
[ticket/13250] Replace slashes in cache file names

* marc1706/ticket/13250:
  [ticket/13250] Use faster str_replace() instead of preg_replace()
  [ticket/13250] Replace slashes in cache file names
  • Loading branch information
Nicofuma committed Feb 5, 2017
2 parents c3896c8 + fbff3b7 commit 1470985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/phpbb/cache/driver/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,6 @@ function _write($filename, $data = null, $expires = 0, $query = '')
*/
protected function clean_varname($varname)
{
return str_replace('/', '-', $varname);
return str_replace(array('/', '\\'), '-', $varname);
}
}

0 comments on commit 1470985

Please sign in to comment.