mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 12:24:50 +02:00
fix OC_HELPER::linkto() when the link is not a valid file.
(e.g. a php script with ?foo=bar appended)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user