diff --git a/assets b/assets index 5e8e63b..8e96f4d 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 5e8e63b37895172e162d34a97c4991fb2869ceb3 +Subproject commit 8e96f4d3de2519f374dc6d49d2fb2a68d859c33f diff --git a/pkg/filemanager/fs/uri.go b/pkg/filemanager/fs/uri.go index 0db4460..866a614 100644 --- a/pkg/filemanager/fs/uri.go +++ b/pkg/filemanager/fs/uri.go @@ -344,11 +344,10 @@ func NewShareUri(id, password string) string { return fmt.Sprintf("%s://%s@%s", constants.CloudreveScheme, id, constants.FileSystemShare) } -// PathEscape is same as url.PathEscape, with modifications to incoporate with JS encodeURI: +// PathEscape is same as url.PathEscape, with modifications to incoporate with JS encodeURIComponent: // encodeURI() escapes all characters except: // // A–Z a–z 0–9 - _ . ! ~ * ' ( ) -// ; / ? : @ & = + $ , # func PathEscape(s string) string { hexCount := 0 for i := 0; i < len(s); i++ { @@ -412,7 +411,7 @@ func shouldEscape(c byte) bool { } switch c { - case '-', '_', '.', '~', '!', '*', '\'', '(', ')', ';', '/', '?', ':', '@', '&', '=', '+', '$', ',', '#': // §2.3 Unreserved characters (mark) + case '-', '_', '.', '~', '!', '*', '\'', '(', ')': // §2.3 Unreserved characters (mark) return false }