user web: fix forum preferences saving (empty signatures were not allowed).

svn path=/trunk/boinc/; revision=15566
This commit is contained in:
Rytis Slatkevičius 2008-07-08 17:42:52 +00:00
parent 4d3dd2cdab
commit f9a7648ec4
2 changed files with 9 additions and 1 deletions

View File

@ -5515,3 +5515,11 @@ Charlie 8 July 2008
ViewProjects.cpp
ViewTransfers.cpp
ViewWork.cpp
Rytis 8 July 2008
- user web: fix forum preferences saving (empty signatures were not
allowed).
html/user/
edit_forum_preferences_action.php

View File

@ -93,7 +93,7 @@ $no_signature_by_default = ($_POST["signature_by_default"]!="")?0:1;
$pm_notification = post_int("pm_notification");
//$low_rating_threshold = post_int("forum_low_rating_threshold");
//$high_rating_threshold = post_int("forum_high_rating_threshold");
$signature = post_str("signature");
$signature = post_str("signature", true);
if (strlen($signature)>250) {
error_page(
"Your signature was too long, please keep it less than 250 chars"