From 2b45a28bd48ffa76ed2a2a0ea95e60f787cb485d Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Thu, 2 Jun 2011 02:58:42 +0200
Subject: [PATCH] fix OC_HELPER::linkto() when the link is not a valid file.

(e.g. a php script with ?foo=bar appended)
---
 lib/helper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
GitLab