mirror of
https://github.com/kd2org/picodav.git
synced 2024-12-22 05:32:18 +01:00
Make sure ANONYMOUS_READ is set to TRUE if not defined
FossilOrigin-Name: d7771c4ff5aab72c956e6cc08d6aed1f0c2dafbb0e4f5db0e7b5cf94c641567c
This commit is contained in:
parent
37213e947b
commit
2e5ef6a3e5
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
];
|
||||
|
||||
|
|
|
@ -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,
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue