Skip to content

Commit

Permalink
Adding encodeuricomponent for request parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav Gupta committed Aug 14, 2015
1 parent aa0763a commit 798d356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hc-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
validateMap = {};

var getQueryStringValue = function(key) {
return unescape(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));
return encodeURIComponent(unescape(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(key).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1")));
},
removeItemFromArray = function(arr, item) {
if (arr && arr.length) {
Expand Down

0 comments on commit 798d356

Please sign in to comment.