aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-02 02:58:42 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-02 02:58:42 +0200
commit2b45a28bd48ffa76ed2a2a0ea95e60f787cb485d (patch)
tree13859955ff40e35f889e745121e79aa2cf203d1c /lib/helper.php
parent8c5a06028aa4bf7a29d79d63a713361ce2f50633 (diff)
downloadnextcloud-server-2b45a28bd48ffa76ed2a2a0ea95e60f787cb485d.tar.gz
nextcloud-server-2b45a28bd48ffa76ed2a2a0ea95e60f787cb485d.zip
fix OC_HELPER::linkto() when the link is not a valid file.
(e.g. a php script with ?foo=bar appended)
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php2
1 files changed, 1 insertions, 1 deletions
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;