incorrectly escaped HTML on a now non-existent mod noticeboard post
This commit is contained in:
parent
23cfaf0cd3
commit
e5a30f7c09
10
mod.php
10
mod.php
@ -523,9 +523,7 @@
|
|||||||
$m_query = prepare("SELECT `username` FROM `mods` WHERE `id` = :id");
|
$m_query = prepare("SELECT `username` FROM `mods` WHERE `id` = :id");
|
||||||
$m_query->bindValue(':id', $notice['mod'], PDO::PARAM_INT);
|
$m_query->bindValue(':id', $notice['mod'], PDO::PARAM_INT);
|
||||||
$m_query->execute() or error(db_error($m_query));
|
$m_query->execute() or error(db_error($m_query));
|
||||||
if(!$_mod = $m_query->fetch()) {
|
$_mod = $m_query->fetch();
|
||||||
$_mod = Array('username' => '<em>???</em>');
|
|
||||||
}
|
|
||||||
|
|
||||||
$body .= '<div class="ban">' .
|
$body .= '<div class="ban">' .
|
||||||
(hasPermission($config['mod']['noticeboard_delete']) ?
|
(hasPermission($config['mod']['noticeboard_delete']) ?
|
||||||
@ -538,7 +536,11 @@
|
|||||||
'<em>no subject</em>'
|
'<em>no subject</em>'
|
||||||
) .
|
) .
|
||||||
'<span class="unimportant"> — by ' .
|
'<span class="unimportant"> — by ' .
|
||||||
utf8tohtml($_mod['username']) .
|
($_mod ?
|
||||||
|
utf8tohtml($_mod['username'])
|
||||||
|
:
|
||||||
|
'<em>???</em>'
|
||||||
|
) .
|
||||||
' at ' .
|
' at ' .
|
||||||
date($config['post_date'], $notice['time']) .
|
date($config['post_date'], $notice['time']) .
|
||||||
'</span></h2><p>' . $notice['body'] . '</p></div>';
|
'</span></h2><p>' . $notice['body'] . '</p></div>';
|
||||||
|
Loading…
Reference in New Issue
Block a user