diff options
author | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-07-01 17:16:37 -0500 |
---|---|---|
committer | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-07-01 17:48:32 -0500 |
commit | 0e93d8386bef21f2af5647bf13e9ba68156cf7da (patch) | |
tree | c7835d3f1542dd7c8b4f8b7377f8e9eda5ae4272 | |
parent | b7ae0fe4e91be1f7dc1d38d2c3c1e5b043d95739 (diff) | |
download | forums-0e93d8386bef21f2af5647bf13e9ba68156cf7da.tar forums-0e93d8386bef21f2af5647bf13e9ba68156cf7da.tar.gz forums-0e93d8386bef21f2af5647bf13e9ba68156cf7da.tar.bz2 forums-0e93d8386bef21f2af5647bf13e9ba68156cf7da.tar.xz forums-0e93d8386bef21f2af5647bf13e9ba68156cf7da.zip |
[ticket/9695] Correct the improper display of user input in mcp_ban.php
Correct the improper display of "ban_reason" and "ban_give_reason" in mcp_ban.php
PHPBB3-9695
-rw-r--r-- | phpBB/adm/style/acp_ban.html | 6 | ||||
-rw-r--r-- | phpBB/includes/acp/acp_ban.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/adm/style/acp_ban.html b/phpBB/adm/style/acp_ban.html index 539e8032dd..cf44f4aaa7 100644 --- a/phpBB/adm/style/acp_ban.html +++ b/phpBB/adm/style/acp_ban.html @@ -31,9 +31,9 @@ function display_details(option) { - document.getElementById('acp_unban').unbangivereason.value = ban_give_reason[option]; - document.getElementById('acp_unban').unbanreason.value = ban_reason[option]; - document.getElementById('acp_unban').unbanlength.value = ban_length[option]; + document.getElementById('acp_unban').unbangivereason.innerHTML = ban_give_reason[option]; + document.getElementById('acp_unban').unbanreason.innerHTML = ban_reason[option]; + document.getElementById('acp_unban').unbanlength.innerHTML = ban_length[option]; } // ]]> diff --git a/phpBB/includes/acp/acp_ban.php b/phpBB/includes/acp/acp_ban.php index 3198376584..a7ea57b753 100644 --- a/phpBB/includes/acp/acp_ban.php +++ b/phpBB/includes/acp/acp_ban.php @@ -224,7 +224,7 @@ class acp_ban $template->assign_block_vars('ban_reason', array( 'BAN_ID' => $ban_id, '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( 'BAN_ID' => $ban_id, 'REASON' => $reason, - 'A_REASON' => addslashes(htmlspecialchars_decode($reason)), + 'A_REASON' => addslashes($reason), )); } } |