From f9a7648ec49f918c19de32087c7814ff64d28818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Tue, 8 Jul 2008 17:42:52 +0000 Subject: [PATCH] user web: fix forum preferences saving (empty signatures were not allowed). svn path=/trunk/boinc/; revision=15566 --- checkin_notes | 8 ++++++++ html/user/edit_forum_preferences_action.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index b89b372be9..9c3d571e03 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 + diff --git a/html/user/edit_forum_preferences_action.php b/html/user/edit_forum_preferences_action.php index db54845963..c48d4ae225 100644 --- a/html/user/edit_forum_preferences_action.php +++ b/html/user/edit_forum_preferences_action.php @@ -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"