Skip to content

Commit

Permalink
queryString bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xjsender committed Apr 10, 2015
1 parent c39c8ed commit 7958394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/common/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var parseId = function(url) {
function getURLParameter(key){
var search = location.search;

var reg = new RegExp("(^|&)" + parm + "=([^&]*)(&|$)");
var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)");
var r = search.substr(search.indexOf("\?") + 1).match(reg);
if (r != null) return unescape(r[2]);
return null;
Expand Down

0 comments on commit 7958394

Please sign in to comment.