From 706c7ce880207817c383e99015437c9165fbb59f Mon Sep 17 00:00:00 2001 From: bohwaz Date: Sun, 26 Mar 2023 18:58:50 +0200 Subject: [PATCH] Update JS dependency to avoid conflict with PHP short codes, fix #7 --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index cbdb4ba..41e2a11 100644 --- a/index.php +++ b/index.php @@ -1941,10 +1941,10 @@ RewriteRule ^.*$ /index.php [END] if ($relative_uri == '.webdav/webdav.js') { fseek($fp, 52608, SEEK_SET); - echo fread($fp, 27789); + echo fread($fp, 27798); } else { - fseek($fp, 52608 + 27789, SEEK_SET); + fseek($fp, 52608 + 27798, SEEK_SET); echo fread($fp, 7004); } @@ -2080,14 +2080,14 @@ const WebDAVNavigator = (url, options) => { const dir_row_tpl = `%icon%%name%%modified%
`; const file_row_tpl = `%icon%%name%%size_bytes%%modified%
${_('Download')}
`; - const propfind_tpl = ` + const propfind_tpl = '<'+ `?xml version="1.0" encoding="UTF-8"?> `; - const wopi_propfind_tpl = ` + const wopi_propfind_tpl = '<' + `?xml version="1.0" encoding="UTF-8"?>