projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e9d9c5
)
This check doesn't work with symlinks, and It's look overly cautious, because the...
author
Jan Schneider
<jan@horde.org>
Mon, 4 Jan 2010 17:51:18 +0000
(18:51 +0100)
committer
Jan Schneider
<jan@horde.org>
Mon, 4 Jan 2010 18:22:18 +0000
(19:22 +0100)
horde/services/prefs.php
patch
|
blob
|
history
diff --git
a/horde/services/prefs.php
b/horde/services/prefs.php
index
e524318
..
172e1ce
100644
(file)
--- 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;
}