diff --git a/mod.php b/mod.php index 7bc53827..30315971 100644 --- a/mod.php +++ b/mod.php @@ -109,7 +109,7 @@ 'no subject' ) . ' — by ' . - $_mod['username'] . + utf8tohtml($_mod['username']) . ' at ' . date($config['post_date'], $notice['time']) . ''; @@ -252,10 +252,10 @@ $body = '
' . 'Are you sure you want to do that?' . 'You clicked ' . - '?/' . htmlentities($uri) . '' . + '?/' . utf8tohtml($uri) . '' . ' but had Javascript disabled, so we weren\'t able to serve the confirmation dialog.' . '
' . - ''; + ''; echo Element('page.html', Array( 'config'=>$config, @@ -280,7 +280,7 @@ $query->execute() or error(db_error($query)); while($log = $query->fetch()) { - $log['text'] = htmlentities($log['text']); + $log['text'] = utf8tohtml($log['text']); $log['text'] = preg_replace('/(\d+\.\d+\.\d+\.\d+)/', '$1', $log['text']); $body .= '' . $notice['body'] . '
'; @@ -590,7 +590,7 @@ 'Message sent successfully to ' . htmlentities($to['username']) . '.
', + 'body'=>'Message sent successfully to ' . utf8tohtml($to['username']) . '.
', 'mod'=>true ) ); @@ -815,8 +815,8 @@ '