fix OC_HELPER::linkto() when the link is not a valid file.

(e.g. a php script with ?foo=bar appended)
remotes/origin/stable
Robin Appelman 2011-06-02 02:58:42 +07:00
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;