Fixes issue where sending a PM would inadvertedly strip everything that looked like tags from the text before sending it.

svn path=/trunk/boinc/; revision=16689
This commit is contained in:
Janus B. Kristensen 2008-12-15 17:46:40 +00:00
parent 784fc83394
commit fba6fb51f2
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ function pm_web_line($notify) {
function pm_send($to_user, $subject, $content, $send_email) {
global $g_logged_in_user;
$sql_subject = boinc_real_escape_string(strip_tags($subject));
$sql_content = boinc_real_escape_string(strip_tags($content));
$sql_content = boinc_real_escape_string($content);
$mid = BoincPrivateMessage::insert("(userid, senderid, date, subject, content) VALUES ($to_user->id, $g_logged_in_user->id, UNIX_TIMESTAMP(), '$sql_subject', '$sql_content')");
if (!$mid) {
error_page("Couldn't create message");