Replace \\ with / in path comparaison -ref #6692

1.9.x
Hubert Borderiou 12 years ago
parent 6063904fe5
commit 05a737a79a
  1. 2
      main/inc/lib/security.lib.php

@ -49,6 +49,8 @@ class Security {
if (empty($checker_path)) { return false; } // The checker path must be set.
$true_path = str_replace("\\", '/', realpath($abs_path));
$checker_path = str_replace("\\", '/', realpath($checker_path));
$found = strpos($true_path.'/', $checker_path);
if ($found === 0) {

Loading…
Cancel
Save