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:
parent
8c5a06028a
commit
2b45a28bd4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue