Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e5d22e

Browse files
committed
encode conf params with encodeURIComponent so query strings can be used in video urls
1 parent 560d84f commit 4e5d22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/toolbox/toolbox.flashembed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
for (var k in conf) {
192192
if (conf[k]) {
193193
var val = conf[k];
194-
vars += k +'='+ (/function|object/.test(typeof val) ? f.asString(val) : val) + '&';
194+
vars += k +'='+ encodeURIComponent(/function|object/.test(typeof val) ? f.asString(val) : val) + '&';
195195
}
196196
}
197197
vars = vars.slice(0, -1);

0 commit comments

Comments
 (0)