We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa57213 commit 2c773a8Copy full SHA for 2c773a8
lib/AppWhitelist.php
@@ -49,7 +49,7 @@ public static function preSetup($params) {
49
$app = self::getRequestedApp($path);
50
$whitelist = self::getWhitelist();
51
52
- if (!\in_array($app, $whitelist)) {
+ if (!\in_array($app, $whitelist, true)) {
53
\header('HTTP/1.0 403 Forbidden');
54
$l = \OC::$server->getL10NFactory()->get('guests');
55
Template::printErrorPage($l->t(
@@ -90,6 +90,8 @@ private static function getRequestedApp($url) {
90
return 'heartbeat';
91
} elseif (\substr($url, 0, 13) === '/dav/comments') {
92
return 'comments';
93
+ } elseif (\substr($url, 0, 11) === '/dav/files/') {
94
+ return 'files';
95
}
96
return false;
97
0 commit comments