From: cajus Date: Wed, 30 Dec 2009 14:34:40 +0000 (+0000) Subject: Remove ../ from plugin paths X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0afa593cc5359ac937d71e3ff467f5504799963c;p=gosa.git Remove ../ from plugin paths git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14988 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index d7921871b..621f74bc6 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -320,7 +320,7 @@ function get_template_path($filename= '', $plugin= FALSE, $path= "") /* 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); }