Unverified Commit 8213c0a6 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(core) Fix escaping of cookies warning message

issue #6071
Showing with 2 additions and 5 deletions
+2 -5
......@@ -53,7 +53,7 @@
if (document.cookie.indexOf( "fdtest=") > -1 )
document.cookie = "fdtest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
else
document.write("{$cookies}");
document.write("<b>{t}Warning{/t}</b> {t}Your browser has cookies disabled. Please enable cookies and reload this page before logging in!{/t}");
-->
</script>
</p>
......
......@@ -53,7 +53,7 @@
if (document.cookie.indexOf( "fdtest=") > -1 )
document.cookie = "fdtest=empty;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT";
else
document.write("{$cookies}");
document.write("<b>{t}Warning{/t}</b> {t}Your browser has cookies disabled. Please enable cookies and reload this page before logging in!{/t}");
-->
</script>
</p>
......
......@@ -84,9 +84,6 @@ class LoginPost extends LoginMethod
}
}
/* Translation of cookie-warning. Whether to display it, is determined by JavaScript */
$smarty->assign('cookies', '<b>'._('Warning').':</b> '._('Your browser has cookies disabled. Please enable cookies and reload this page before logging in!'));
static::displayLogin();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment