Make sure ANONYMOUS_READ is set to TRUE if not defined

FossilOrigin-Name: d7771c4ff5aab72c956e6cc08d6aed1f0c2dafbb0e4f5db0e7b5cf94c641567c
This commit is contained in:
bohwaz 2022-11-22 00:46:15 +00:00
parent 37213e947b
commit 2e5ef6a3e5
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,
];