X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=05462549a88987a26c702247754b207f4e615640;hb=ca29b81004eea3cff3f249e95235ba544730a4e7;hp=46591cb7be5cc9633d14e550f150ae074a05b993;hpb=2a32fc83f95eba42be0d1752ef685adf10e1edc9;p=squirrelmail.git
diff --git a/src/read_body.php b/src/read_body.php
index 46591cb7..05462549 100644
--- a/src/read_body.php
+++ b/src/read_body.php
@@ -1,4 +1,14 @@
-
+";
+ echo "
\n";
+ echo "\n";
+ echo "";
+
+ echo "";
+ for ($i=1; $i < count($read)-1; $i++) {
+ $line = htmlspecialchars($read[$i]);
+ if (eregi("^[ |\t]", $line)) {
+ $second = $line;
+ $first = "";
+ } else if (eregi("^([^:|^\s]+):(.+)", $line, $regs)) {
+ $first = $regs[1];
+ $second = $regs[2];
+ } else {
+ $second = trim($line);
+ $first = "";
+ }
+ echo "";
+ if ($first) echo "$first:";
+ else echo " ";
+ echo " | $second | ";
+ }
+ echo " ";
+ echo " |
\n";
+ echo "