From: Jan Schneider Date: Mon, 4 Jan 2010 17:51:18 +0000 (+0100) Subject: This check doesn't work with symlinks, and It's look overly cautious, because the... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2f1c4a56af8624510c19077d91baa0e776f2cc59;p=horde.git This check doesn't work with symlinks, and It's look overly cautious, because the url is always coming from the configuration file afaict. --- diff --git a/horde/services/prefs.php b/horde/services/prefs.php index e524318a7..172e1ce9d 100644 --- a/horde/services/prefs.php +++ b/horde/services/prefs.php @@ -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; }