Make sure ANONYMOUS_READ is set to TRUE if not defined
This commit is contained in:
parent
e9c12759d7
commit
4acf72454e
2 changed files with 4 additions and 4 deletions
|
@ -1847,11 +1847,11 @@ RewriteRule ^.*$ /index.php [END]
|
||||||
$fp = fopen(__FILE__, 'r');
|
$fp = fopen(__FILE__, 'r');
|
||||||
|
|
||||||
if ($relative_uri == 'webdav.js') {
|
if ($relative_uri == 'webdav.js') {
|
||||||
fseek($fp, 49575, SEEK_SET);
|
fseek($fp, 49574, SEEK_SET);
|
||||||
echo fread($fp, 25889);
|
echo fread($fp, 25889);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fseek($fp, 49575 + 25889, SEEK_SET);
|
fseek($fp, 49574 + 25889, SEEK_SET);
|
||||||
echo fread($fp, 6760);
|
echo fread($fp, 6760);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1864,7 +1864,7 @@ RewriteRule ^.*$ /index.php [END]
|
||||||
const INTERNAL_FILES = ['.picodav.ini', 'index.php', 'webdav.js', 'webdav.css'];
|
const INTERNAL_FILES = ['.picodav.ini', 'index.php', 'webdav.js', 'webdav.css'];
|
||||||
|
|
||||||
const DEFAULT_CONFIG = [
|
const DEFAULT_CONFIG = [
|
||||||
'ANONYMOUS_READ' => false,
|
'ANONYMOUS_READ' => true,
|
||||||
'ANONYMOUS_WRITE' => false,
|
'ANONYMOUS_WRITE' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -578,7 +578,7 @@ namespace {
|
||||||
const INTERNAL_FILES = ['.picodav.ini', 'index.php', 'webdav.js', 'webdav.css'];
|
const INTERNAL_FILES = ['.picodav.ini', 'index.php', 'webdav.js', 'webdav.css'];
|
||||||
|
|
||||||
const DEFAULT_CONFIG = [
|
const DEFAULT_CONFIG = [
|
||||||
'ANONYMOUS_READ' => false,
|
'ANONYMOUS_READ' => true,
|
||||||
'ANONYMOUS_WRITE' => false,
|
'ANONYMOUS_WRITE' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue