fix to work with path containing a query

This commit is contained in:
Ralf Becker 2011-08-21 20:01:10 +00:00
parent 7b89481b76
commit 750f80b23b

View File

@ -263,7 +263,7 @@ class egw_include_mgr
*/
private function translate_params($package, $file, $app)
{
if ($package[0] == '/' && is_readable(EGW_SERVER_ROOT.($path = $package)) ||
if ($package[0] == '/' && is_readable(EGW_SERVER_ROOT.(parse_url($path = $package, PHP_URL_PATH))) ||
is_readable(EGW_SERVER_ROOT.($path="/$app/js/$package/$file.js")) ||
$app != 'phpgwapi' && is_readable(EGW_SERVER_ROOT.($path="/phpgwapi/js/$package/$file.js")))
{