Skip to content

Commit

Permalink
Smaller text window for typing and safer display of first names
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 1, 2005
1 parent 3cebcce commit 8fc8e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

/// Then write it to our own screen immediately
$time = userdate(time(), get_string('strftimemessage', 'chat'));
$message = '<p><font size="-1"><b>'.$USER->firstname.' ['.$time.']</b>: '.$message.'</font></p>';
$message = '<p><font size="-1"><b>'.addslashes($USER->firstname).' ['.$time.']</b>: '.$message.'</font></p>';

$script = "<script>\n";
$script .= "parent.messages.document.write('$message\\n');\n";
Expand All @@ -172,7 +172,7 @@

$usehtmleditor = can_use_html_editor();
$usehtmleditor = false; // REMOVE
print_textarea($usehtmleditor, 5, 50, 450, 200, 'message', '');
print_textarea($usehtmleditor, 5, 40, 450, 200, 'message', '');
if ($usehtmleditor) {
use_html_editor("message");
}
Expand Down

0 comments on commit 8fc8e7e

Please sign in to comment.