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:
Robin Appelman 2011-06-02 02:58:42 +02:00
parent 8c5a06028a
commit 2b45a28bd4

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