Make sure ANONYMOUS_READ is set to TRUE if not defined

This commit is contained in:
bohwaz 2022-11-22 01:46:16 +01:00
parent e9c12759d7
commit 4acf72454e
2 changed files with 4 additions and 4 deletions

View file

@ -1847,11 +1847,11 @@ RewriteRule ^.*$ /index.php [END]
$fp = fopen(__FILE__, 'r');
if ($relative_uri == 'webdav.js') {
fseek($fp, 49575, SEEK_SET);
fseek($fp, 49574, SEEK_SET);
echo fread($fp, 25889);
}
else {
fseek($fp, 49575 + 25889, SEEK_SET);
fseek($fp, 49574 + 25889, SEEK_SET);
echo fread($fp, 6760);
}
@ -1864,7 +1864,7 @@ RewriteRule ^.*$ /index.php [END]
const INTERNAL_FILES = ['.picodav.ini', 'index.php', 'webdav.js', 'webdav.css'];
const DEFAULT_CONFIG = [
'ANONYMOUS_READ' => false,
'ANONYMOUS_READ' => true,
'ANONYMOUS_WRITE' => false,
];

View file

@ -578,7 +578,7 @@ namespace {
const INTERNAL_FILES = ['.picodav.ini', 'index.php', 'webdav.js', 'webdav.css'];
const DEFAULT_CONFIG = [
'ANONYMOUS_READ' => false,
'ANONYMOUS_READ' => true,
'ANONYMOUS_WRITE' => false,
];