Skip to content

Commit

Permalink
Improve sanitizing Path to PHP in tools.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Jul 17, 2024
1 parent 05e7e1e commit 8172db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function clearCache($root_dir, $php_path)
if (!file_exists($php_path)) {
$php_path = 'php';
}
$php_path = preg_replace("#[ ;\|]#", '', $php_path);
$php_path = preg_replace("#[ ;&\|]#", '', $php_path);
if (!$php_path) {
$php_path = 'php';
}
Expand Down

0 comments on commit 8172db9

Please sign in to comment.