-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
0. Needs triagePending approval or rejection. This issue is pending approval.Pending approval or rejection. This issue is pending approval.bugSomething isn't workingSomething isn't working
Description
Describe the bug
I can't view any videos with filenames containing HTML entities, e.g. &.
To Reproduce
Steps to reproduce the behavior:
- Upload a video.
- Rename it to
&.mp4. - Open it
- Doesn't work
Expected behavior
The video opens.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Firefox 120, macOS 14. Nextcloud 27.1.4.
Browser log
[INFO] viewer: Opening viewer for file
Object { app: "viewer", uid: "christopher", level: 0, path: "/Downloads/Archiv/&.mp4" }
ConsoleLogger.js:53:18
File info for /Downloads/Archiv/&.mp4 fetched
Object { filename: "/Downloads/Archiv/&.mp4", basename: "&.mp4", lastmod: "Wed, 06 Dec 2023 19:30:44 GMT", size: 20766733, type: "file", etag: "20da2f45465bb77c597cfd0b65fd6533", mime: "video/mp4", getlastmodified: "Wed, 06 Dec 2023 19:30:44 GMT", getcontenttype: "video/mp4", resourcetype: "", … }
Viewer.vue:608
Error loading /Downloads/Archiv/&.mp4
error { target: div.plyr.plyr--full-ui.plyr--video.plyr--html5.plyr--fullscreen-enabled.plyr--paused.plyr--stopped, isTrusted: false, detail: {…}, srcElement: div.plyr.plyr--full-ui.plyr--video.plyr--html5.plyr--fullscreen-enabled.plyr--paused.plyr--stopped, currentTarget: div.viewer__file.viewer__file--active, eventPhase: 3, bubbles: true, cancelable: false, returnValue: true, defaultPrevented: false, … }
Mime.js:140:11
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0. Needs triagePending approval or rejection. This issue is pending approval.Pending approval or rejection. This issue is pending approval.bugSomething isn't workingSomething isn't working