浏览代码

fixed problem with sending subjects with a '.
added a urlencode($mailbox) to a link in download.php

Luke Ehresman 25 年之前
父节点
当前提交
6e7b83ddae
共有 4 个文件被更改,包括 2 次插入37 次删除
  1. 0 4
      AUTHORS
  2. 0 31
      config/default_theme.php
  3. 1 1
      functions/smtp.php
  4. 1 1
      src/download.php

+ 0 - 4
AUTHORS

@@ -21,7 +21,3 @@
    Swedish:      Tobias Ekbom (tobias@vallcom.net)	
    Swedish:      Tobias Ekbom (tobias@vallcom.net)	
    Dutch:        Arjan Halma (arjan@halma.nl)
    Dutch:        Arjan Halma (arjan@halma.nl)
    Portugese (Brazil): Henrique Moura (henriquemoura@hotmail.com)
    Portugese (Brazil): Henrique Moura (henriquemoura@hotmail.com)
-
- Help System:
- ------------
-   Lewis Bergman

+ 0 - 31
config/default_theme.php

@@ -1,31 +0,0 @@
-<?php
-   /** Author:       Luke Ehresman
-       Date:         January 2, 2000
-       Theme Name:   "Default Theme"
-
-       This is the default theme that comes standard with SquirrelMail.
-       Most of the colors were taken from mail.yahoo.com's theme on their
-       site.
-
-       To create a new theme, just copy this file, and edit the colors.
-       Be sure to rename the file and keep the original, just in case.
-
-       NOTE:
-       Please email any themes you create to luke@usa.om.org for inclusion
-       in further releases of SquirrelMail and for download from the web
-       page.
-    **/
-
-    $color[0]   = "#DCDCDC"; // (light gray)     TitleBar
-    $color[1]   = "#800000"; // (red)
-    $color[2]   = "#CC0000"; // (light red)      Warning/Error Messages
-    $color[3]   = "#A0B8C8"; // (green-blue)     Left Bar Background
-    $color[4]   = "#FFFFFF"; // (white)          Normal Background
-    $color[5]   = "#FFFFCC"; // (light yellow)   Table Headers
-    $color[6]   = "#000000"; // (black)          Text on left bar
-    $color[7]   = "#0000CC"; // (blue)           Links
-    $color[8]   = "#000000"; // (black)          Normal text
-    $color[9]   = "#ABABAB"; // (mid-gray)       Darker version of #0
-    $color[10]  = "#666666"; // (dark gray)      Darker version of #9
-    $color[11]  = "#770000"; // (dark red)       Special Folders color
-?>

+ 1 - 1
functions/smtp.php

@@ -132,7 +132,7 @@
          $bcc_list = getLineOfAddrs($bcc);
          $bcc_list = getLineOfAddrs($bcc);
          
          
          /* Encoding 8-bit characters and making from line */
          /* Encoding 8-bit characters and making from line */
-         $subject = encodeHeader($subject);
+         $subject = stripslashes(encodeHeader($subject));
          if ($from == "")
          if ($from == "")
             $from = "<$from_addr>";
             $from = "<$from_addr>";
          else
          else

+ 1 - 1
src/download.php

@@ -32,7 +32,7 @@
       echo "<BR><TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
       echo "<BR><TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
       echo "<B><CENTER>";
       echo "<B><CENTER>";
       echo _("Viewing a text attachment") . " - ";
       echo _("Viewing a text attachment") . " - ";
-      echo "<a href=\"read_body.php?mailbox=$mailbox&passed_id=$id\">". _("View message") . "</a>";
+      echo "<a href=\"read_body.php?mailbox=".urlencode($mailbox)."&passed_id=$id&startMessage=$startMessage&show_more=0\">". _("View message") . "</a>";
       echo "</CENTER></B>";
       echo "</CENTER></B>";
       echo "</TD></TR><TR><TD BGCOLOR=\"$color[4]\">";
       echo "</TD></TR><TR><TD BGCOLOR=\"$color[4]\">";
       $urlmailbox = urlencode($mailbox);
       $urlmailbox = urlencode($mailbox);