mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
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:
parent
415005e2f6
commit
a8629df5ec
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user