Browse code

Syntaxfehler

Bernd Wurst authored on 27/06/2018 14:04:41
Showing 1 changed files
... ...
@@ -207,7 +207,7 @@ function in_homedir($path)
207 207
         DEBUG("Kann homedir nicht ermitteln");
208 208
         return false;
209 209
     }
210
-    return strncmp($_SESSION['userinfo']['homedir'], $path, count($_SESSION['userinfo']['homedir'])) == 0;
210
+    return strncmp($_SESSION['userinfo']['homedir'], $path, strlen($_SESSION['userinfo']['homedir'])) == 0;
211 211
 }
212 212
 
213 213
 function check_date($input)