fix fail in previous commit

This commit is contained in:
Georg Ehrke 2012-05-13 21:45:24 +02:00
parent 3327aabe4d
commit 3ce6eca40a
1 changed files with 0 additions and 1 deletions

View File

@ -7,7 +7,6 @@ if (array_key_exists('PATH_INFO', $_SERVER)){
}else{
$path_info = substr($_SERVER['PHP_SELF'], strpos($_SERVER['PHP_SELF'], basename(__FILE__)) + strlen(basename(__FILE__)));
}
$path_info = $_SERVER['PATH_INFO'];
if (!$pos = strpos($path_info, '/', 1)) {
$pos = strlen($path_info);
}