mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Escape question marks in filenames
This commit is contained in:
parent
6d5fb03e3f
commit
cb9992836c
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user