]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix OC_HELPER::linkto() when the link is not a valid file.
authorRobin Appelman <icewind1991@gmail.com>
Thu, 2 Jun 2011 00:58:42 +0000 (02:58 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 2 Jun 2011 00:58:42 +0000 (02:58 +0200)
(e.g. a php script with ?foo=bar appended)

lib/helper.php

index 281761c590bc78395a203097ff65da2d43d08bf3..9faf8861161b944d038c1471940e3bf570ab3c15 100644 (file)
@@ -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;