littlemilkwu
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
weed/server/filer_ui/filer.html
|
|
@ -315,7 +315,7 @@ |
|
|
|
if (dirName == null || dirName == '') { |
|
|
|
return; |
|
|
|
} |
|
|
|
var baseUrl = window.location.href; |
|
|
|
var baseUrl = window.location.origin + window.location.pathname; |
|
|
|
if (!baseUrl.endsWith('/')) { |
|
|
|
baseUrl += '/'; |
|
|
|
} |
|
|
@ -323,6 +323,7 @@ |
|
|
|
if (!url.endsWith('/')) { |
|
|
|
url += '/'; |
|
|
|
} |
|
|
|
url += window.location.search; |
|
|
|
var xhr = new XMLHttpRequest(); |
|
|
|
xhr.open('POST', url, false); |
|
|
|
xhr.setRequestHeader('Content-Type', ''); |
|
|
|