Bug: handling special characters in filenames
-
Just found another bug in Surfer: When you play a video you have a button "copy link". This button copies the original file name into the URL but doesn't translate special characters (e.g. space -> %20) so that the link will not work. Had to manually edit it for linking a file.
There also doesn't appear to be a way to close the preview pane.
-
Well spotted, although I don't think the space would have made your browser not being able to open that URL. Either way I've fixed this now, pending a package release.
-
Another issue is with
#, Surfer doesn't seem to like it in filenames and can't serve those files with the webserver. -
@robi this should be fixed with https://git.cloudron.io/cloudron/surfer/-/commit/353ac1f5cb0c1da988e68ca35a417b35130b0d25 however before I release a new package I need to add more filepath encoding tests.
Ok I added those test cases and made a new package release now. Please be aware that if you just use
#in a path in the browser URL bar, without encoding it, the browser will treat this as a URL hash, not as part of the filepath.eg.
foo/bar#baz.txtwill end up asfoo/baronly.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login