mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'ticket/jellydoughnut/9695' into develop-olympus
* ticket/jellydoughnut/9695: [ticket/9695] Correct the improper display of user input in mcp_ban.php
This commit is contained in:
commit
f22f89888d
2 changed files with 5 additions and 5 deletions
|
@ -31,9 +31,9 @@
|
||||||
|
|
||||||
function display_details(option)
|
function display_details(option)
|
||||||
{
|
{
|
||||||
document.getElementById('acp_unban').unbangivereason.value = ban_give_reason[option];
|
document.getElementById('acp_unban').unbangivereason.innerHTML = ban_give_reason[option];
|
||||||
document.getElementById('acp_unban').unbanreason.value = ban_reason[option];
|
document.getElementById('acp_unban').unbanreason.innerHTML = ban_reason[option];
|
||||||
document.getElementById('acp_unban').unbanlength.value = ban_length[option];
|
document.getElementById('acp_unban').unbanlength.innerHTML = ban_length[option];
|
||||||
}
|
}
|
||||||
|
|
||||||
// ]]>
|
// ]]>
|
||||||
|
|
|
@ -224,7 +224,7 @@ class acp_ban
|
||||||
$template->assign_block_vars('ban_reason', array(
|
$template->assign_block_vars('ban_reason', array(
|
||||||
'BAN_ID' => $ban_id,
|
'BAN_ID' => $ban_id,
|
||||||
'REASON' => $reason,
|
'REASON' => $reason,
|
||||||
'A_REASON' => addslashes(htmlspecialchars_decode($reason)),
|
'A_REASON' => addslashes($reason),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -236,7 +236,7 @@ class acp_ban
|
||||||
$template->assign_block_vars('ban_give_reason', array(
|
$template->assign_block_vars('ban_give_reason', array(
|
||||||
'BAN_ID' => $ban_id,
|
'BAN_ID' => $ban_id,
|
||||||
'REASON' => $reason,
|
'REASON' => $reason,
|
||||||
'A_REASON' => addslashes(htmlspecialchars_decode($reason)),
|
'A_REASON' => addslashes($reason),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue