Skip to content
Snippets Groups Projects
Commit c536aa24 authored by Olav Morken's avatar Olav Morken
Browse files

Utilities::resolvePath: Fix handling of absolute paths.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@675 44740490-163a-0410-bde0-09ae8108e29a
parent c3220301
No related branches found
No related tags found
No related merge requests found
......@@ -985,7 +985,14 @@ class SimpleSAML_Utilities {
$base = substr($base, 0, -1);
}
$ret = $base;
/* Check for absolute path. */
if(substr($path, 0, 1) === '/') {
/* Absolute path. */
$ret = '/';
} else {
/* Path relative to base. */
$ret = $base;
}
$path = explode('/', $path);
foreach($path as $d) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment