summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87aaf50)
raw | patch | inline | side by side (parent: 87aaf50)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Dec 2009 14:34:40 +0000 (14:34 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Dec 2009 14:34:40 +0000 (14:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14988 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index d7921871bec4b6ff74053fbdc5b294c326fde589..621f74bc6b053c1b7b2cd74f67ab9707dc8cde50 100644 (file)
/* Return plugin dir or root directory? */
if ($plugin){
if ($path == ""){
- $nf= preg_replace("!^".$BASE_DIR."/!", "", session::global_get('plugin_dir'));
+ $nf= preg_replace("!^".$BASE_DIR."/!", "", preg_replace('/^\.\.\//', '', session::global_get('plugin_dir')));
} else {
$nf= preg_replace("!^".$BASE_DIR."/!", "", $path);
}