Skip to content

Commit

Permalink
Decode URI component before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gdm85 committed Apr 3, 2016
1 parent 3f683cb commit 0e63a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/main.html
Expand Up @@ -173,7 +173,7 @@ <h3>Donate</h3>
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
if(pair[0] == variable){return decodeURIComponent(pair[1]);}
}
return(false);
}
Expand Down

0 comments on commit 0e63a39

Please sign in to comment.