mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 22:23:04 +08:00
FIX: Invalid escaping of URL
This commit is contained in:
@ -29,7 +29,7 @@
|
|||||||
// On facebook browser, just redirect and don't close
|
// On facebook browser, just redirect and don't close
|
||||||
var ua = navigator.userAgent || navigator.vendor || window.opera;
|
var ua = navigator.userAgent || navigator.vendor || window.opera;
|
||||||
if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
|
if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
|
||||||
window.location.href = <%= Discourse.base_url.inspect %>;
|
window.location.href = '<%= Discourse.base_url.html_safe %>';
|
||||||
} else {
|
} else {
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user