This check doesn't work with symlinks, and It's look overly cautious, because the...
authorJan Schneider <jan@horde.org>
Mon, 4 Jan 2010 17:51:18 +0000 (18:51 +0100)
committerJan Schneider <jan@horde.org>
Mon, 4 Jan 2010 18:22:18 +0000 (19:22 +0100)
horde/services/prefs.php

index e524318..172e1ce 100644 (file)
@@ -62,9 +62,8 @@ try {
 /* See if this group has a custom URL. */
 if ($group && !empty($prefGroups[$group]['url'])) {
     $pref_url = $prefGroups[$group]['url'];
-    $filename = realpath($appbase . '/' . $pref_url);
-    if (file_exists($filename) &&
-        (strpos($filename, $appbase) === 0)) {
+    $filename = $appbase . '/' . $pref_url;
+    if (file_exists($filename)) {
         require $filename;
         return;
     }