Encode/Decode Launcher string in case of special charactors

This commit is contained in:
NI
2019-08-29 23:19:21 +08:00
parent c815f73e7a
commit 824f00bad8

View File

@@ -675,7 +675,7 @@ class Builder {
return new Wizard( return new Wizard(
this.launchCmd( this.launchCmd(
new Info(this), new Info(this),
launcher, decodeURI(launcher),
streams, streams,
subs, subs,
controls, controls,
@@ -694,7 +694,7 @@ class Builder {
* @return {string} Launcher string * @return {string} Launcher string
*/ */
launcher(config) { launcher(config) {
return this.name() + ":" + this.launcherCmd(config); return this.name() + ":" + encodeURI(this.launcherCmd(config));
} }
} }