Signature encoding issues

svn path=/trunk/boinc/; revision=11719
This commit is contained in:
Rytis Slatkevičius 2006-12-23 15:35:49 +00:00
parent eedd0db6c9
commit 0870cce03d
2 changed files with 4 additions and 4 deletions

View File

@ -68,9 +68,9 @@ function output_transform($text, $options = NULL) {
//$text = htmlentities($text); //$text = htmlentities($text);
$text = htmlspecialchars($text); $text = htmlspecialchars($text);
} }
if ($options->htmlscrub) { // if ($options->htmlscrub) {
$text = sanitize_html($text); // $text = sanitize_html($text);
} // }
if ($options->nl2br) { if ($options->nl2br) {
$text = nl2br($text); $text = nl2br($text);
} }

View File

@ -82,7 +82,7 @@ $user->setLowRatingThreshold($low_rating_threshold);
$user->setHighRatingThreshold($high_rating_threshold); $user->setHighRatingThreshold($high_rating_threshold);
// Update the signature for this user // Update the signature for this user
$signature = sanitize_html(stripslashes($_POST["signature"])); $signature = stripslashes($_POST["signature"]);
if (strlen($signature)>250) { if (strlen($signature)>250) {
error_page("Your signature was too long, please keep it less than 250 chars"); error_page("Your signature was too long, please keep it less than 250 chars");
} }