Use "encodeURIComponent" instead of "escape" in popup windows JS

This also fixes passing client's URL for IDN domains to the server.
This commit is contained in:
Dmitriy Simushev 2015-03-17 13:46:20 +00:00
parent 415005e2f6
commit a8629df5ec

View File

@ -277,8 +277,8 @@ var Mibew = Mibew || {};
}
return this.url
+ ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + escape(href)
+ '&referrer=' + escape(referrer);
+ ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + encodeURIComponent(href)
+ '&referrer=' + encodeURIComponent(referrer);
}
/**