fix issue concerning absoluteUrl

This commit is contained in:
Manuel Raynaud
2013-10-09 12:44:49 +02:00
parent 5d0eb4e61e
commit d8ec745fea
2 changed files with 3 additions and 2 deletions

View File

@@ -129,8 +129,9 @@ class URL
// If only a path is requested, be sure to remove the script name (index.php or index_dev.php), if any.
if ($path_only == self::PATH_TO_FILE) {
// As the base_url always ends with '/', if we don't find / at the end, we have a script.
if (substr($base_url, -1) != '/') $base_url = dirname($base_url);
if (substr($base_url, -3) == 'php') $base_url = dirname($base_url);
}
// Normalize the given path