From 1f278f1520c5df1d3f83afd2373bcbe85096f464 Mon Sep 17 00:00:00 2001 From: bohwaz Date: Thu, 22 Dec 2022 13:15:09 +0000 Subject: [PATCH] Fix #1 wrong class name FossilOrigin-Name: a14ccc8d943a761cfa33796446fbd5a2bc93068f4b3ac7986a8f61b3f9c28b04 --- index.php | 8 ++++---- server.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index f22e1ae..a8ea18f 100644 --- a/index.php +++ b/index.php @@ -1544,7 +1544,7 @@ namespace PicoDAV } if (null === $properties) { - $properties = WebDAV::BASIC_PROPERTIES; + $properties = Server::BASIC_PROPERTIES; } $out = []; @@ -1586,7 +1586,7 @@ namespace PicoDAV $size = 0; $quota = disk_free_space($this->path); - $tmp_file = '.tmp.' . sha1($target); + $tmp_file = $this->path . '.tmp.' . sha1($target); $out = fopen($tmp_file, 'w'); while (!feof($pointer)) { @@ -1863,11 +1863,11 @@ RewriteRule ^.*$ /index.php [END] $fp = fopen(__FILE__, 'r'); if ($relative_uri == '.webdav/webdav.js') { - fseek($fp, 50022, SEEK_SET); + fseek($fp, 50036, SEEK_SET); echo fread($fp, 27769); } else { - fseek($fp, 50022 + 27769, SEEK_SET); + fseek($fp, 50036 + 27769, SEEK_SET); echo fread($fp, 7004); } diff --git a/server.php b/server.php index e58557a..6636984 100644 --- a/server.php +++ b/server.php @@ -268,7 +268,7 @@ namespace PicoDAV } if (null === $properties) { - $properties = WebDAV::BASIC_PROPERTIES; + $properties = Server::BASIC_PROPERTIES; } $out = [];