Better XSS prevention (NOTE: must run npm install validator on existing installs)
This commit is contained in:
parent
46b823c60d
commit
91a2fcb61d
6 changed files with 12 additions and 7 deletions
|
|
@ -106,8 +106,9 @@ Callbacks = {
|
|||
|
||||
setMotd: function(data) {
|
||||
CHANNEL.motd = data.html;
|
||||
CHANNEL.motd_text = data.motd;
|
||||
$("#motd").html(data.html);
|
||||
$("#motdtext").val(CHANNEL.motd);
|
||||
$("#motdtext").val(CHANNEL.motd_text);
|
||||
if(data.motd != "")
|
||||
$("#motd").show();
|
||||
else
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ var CHANNEL = {
|
|||
css: "",
|
||||
js: "",
|
||||
motd: "",
|
||||
motd_text: "",
|
||||
name: false
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -767,7 +767,7 @@ function handleModPermissions() {
|
|||
$("#opt_voteskip_ratio").val(CHANNEL.opts.voteskip_ratio);
|
||||
$("#csstext").val(CHANNEL.css);
|
||||
$("#jstext").val(CHANNEL.js);
|
||||
$("#motdtext").val(CHANNEL.motd);
|
||||
$("#motdtext").val(CHANNEL.motd_text);
|
||||
setVisible("#permedit_tab", CLIENT.rank >= 3);
|
||||
setVisible("#banlist_tab", hasPermission("ban"));
|
||||
setVisible("#motdedit_tab", hasPermission("motdedit"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue