We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c1597 commit 284fcdbCopy full SHA for 284fcdb
samples/nounly/public/javascripts/app.js
@@ -23,8 +23,8 @@
23
if (t != 0)
24
submitting();
25
if (t == 1) {
26
- window.location.href = elem.value;
27
- var item = {code:elem.value, url:window.location.protocol+"//"+window.location.host+"/"+elem.value};
+ window.location.href = encodeURIComponent(elem.value);
+ var item = {code: elem.value, url: window.location.protocol + "//" + window.location.host + "/" + encodeURIComponent(elem.value)};
28
addHistory(history.find(function(e){return e.code === item.code}) || item, true);
29
}
30
return t == 2;
0 commit comments