Use forms.php functions.
[squirrelmail.git] / src / read_body.php
index 9c88e782e0957cc9e3db9f60ddc4d4192df864ee..9cce574aeb8d89ab742cfbd0968e8395181669a3 100644 (file)
@@ -736,9 +736,9 @@ function formatToolbar($mailbox, $passed_id, $passed_ent_id, $message, $color) {
     global $base_uri;
 
     $urlMailbox = urlencode($mailbox);
-    if (sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER)) {                                                                 
-        $query_string = urlencode($query_string);                                                                                   
-    } else {                                                                                                                        
+    if (!sqgetGlobalVar('QUERY_STRING', $query_string, SQ_SERVER)) {
+        // FIX ME !. If this happens there is something else wrong. Falling
+        // back to '' won't help. We should raise an error instead.
         $query_string = '';                                                                                                         
     } 
     $url = $base_uri.'src/view_header.php?'.$query_string;