Added html_top and html_bottom hooks to read_body for compression plugin
[squirrelmail.git] / src / addrbook_search_html.php
index 95b93fccaffaf0fbca9cff6df01d7f1a58195a1a..495f218e53f8477c1d71c6809b75128db1d87a14 100644 (file)
    // Insert hidden data
    function addr_insert_hidden() {
       global $body, $subject, $send_to, $send_to_cc, $send_to_bcc;
-      printf("<input type=hidden value=\"%s\" name=body>\n", 
-             htmlspecialchars($body));
-      printf("<input type=hidden value=\"%s\" name=subject>\n", 
-             htmlspecialchars($subject));
-      printf("<input type=hidden value=\"%s\" name=send_to>\n", 
-             htmlspecialchars($send_to));
-      printf("<input type=hidden value=\"%s\" name=send_to_cc>\n", 
-             htmlspecialchars($send_to_cc));
-      printf("<input type=hidden value=\"%s\" name=send_to_bcc>\n", 
-             htmlspecialchars($send_to_bcc));     
-      printf("<input type=hidden value=\"true\" name=from_htmladdr_search>\n");
+      
+      echo "<input type=hidden value=\"";
+      if (substr($body, 0, 1) == "\r")
+          echo "\n";
+      echo htmlspecialchars($body) . "\" name=body>\n";
+      echo "<input type=hidden value=\"" . htmlspecialchars($subject)
+          . "\" name=subject>\n";
+      echo "<input type=hidden value=\"" . htmlspecialchars($send_to)
+          . "\" name=send_to>\n";
+      echo "<input type=hidden value=\"" . htmlspecialchars($send_to_cc)
+          . "\" name=send_to_cc>\n";
+      echo "<input type=hidden value=\"" . htmlspecialchars($send_to_bcc)
+          . "\" name=send_to_bcc>\n";
+      echo "<input type=hidden value=\"true\" name=from_htmladdr_search>\n";
    }