[svn r11149] Fixed substr call for trailing slash

skala
Yannick Warnier 18 years ago
parent 862e87598f
commit 6133fb050a
  1. 2
      main/inc/lib/security.lib.php

@ -63,7 +63,7 @@ class Security{
{
if(empty($checker_path)){return false;} //checker path must be set
$current_path = getcwd(); //no trailing slash
if(substr($rel_path,0,1)!='/'){
if(substr($rel_path,-1,1)!='/'){
$rel_path = '/'.$rel_path;
}
$abs_path = $current_path.$rel_path;

Loading…
Cancel
Save