From: Robin Appelman Date: Thu, 2 Jun 2011 00:58:42 +0000 (+0200) Subject: fix OC_HELPER::linkto() when the link is not a valid file. X-Git-Tag: v3.0~267^2~558^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2b45a28bd48ffa76ed2a2a0ea95e60f787cb485d;p=nextcloud-server.git fix OC_HELPER::linkto() when the link is not a valid file. (e.g. a php script with ?foo=bar appended) --- diff --git a/lib/helper.php b/lib/helper.php index 281761c590b..9faf8861161 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -42,7 +42,7 @@ class OC_HELPER { } // Check if the app is in the app folder - if( file_exists( $SERVERROOT . '/apps/'. $app . $file )){ + if( file_exists( $SERVERROOT . '/apps/'. $app )){ return $WEBROOT . '/apps/' . $app . $file; } return $WEBROOT . '/' . $app . $file;