mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-12 10:31:09 +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
|
return this.url
|
||||||
+ ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + escape(href)
|
+ ((this.url.indexOf('?') === -1) ? '?' : '&') + 'url=' + encodeURIComponent(href)
|
||||||
+ '&referrer=' + escape(referrer);
|
+ '&referrer=' + encodeURIComponent(referrer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user