Escape question marks in filenames

This commit is contained in:
Tobias Dammers 2022-11-30 14:15:50 +01:00
parent 6d5fb03e3f
commit cb9992836c
2 changed files with 2 additions and 0 deletions

View File

@ -520,6 +520,7 @@ const VUEPLAYERCORE = (() => {
var rawFilepath = filepath;
filepath = filepath.replace(/\%/g, "%25");
filepath = filepath.replace(/\#/g, "%23");
filepath = filepath.replace(/\?/g, "%3F");
if (filepath.charAt(0) === '/') {
filepath = filepath.substr(1);
}

View File

@ -177,6 +177,7 @@ var MSTREAMAPI = (function () {
var rawFilepath = filepath;
filepath = filepath.replace(/\%/g, "%25");
filepath = filepath.replace(/\#/g, "%23");
filepath = filepath.replace(/\?/g, "%3F");
if (filepath.charAt(0) === '/') {
filepath = filepath.substr(1);
}