- fixed bug in conf.pl where no default was set for $force_username_lowercase
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Dec 2000 13:22:42 +0000 (13:22 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Dec 2000 13:22:42 +0000 (13:22 +0000)
- fixed bug in download.php that didn't display rtf correctly

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@868 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
config/conf.pl
src/download.php
src/login.php

index 5d9dddb..a51ab3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 Version 1.0pre1 -- DEVELOPMENT
 ------------------------------
+- Made session cookie parameter use PHP's settings rather than making assumptions
+- Select/Deslect all implemented using only HTML (not Javascript)
 - Fixed default charset that is sent with outbound messages (now user's preferred charset)
 - Sort method saving now transparent to user, and saves between sessions
 - Now replacing all \n with \r\n before sending the message.
index 4d47933..68a5ee6 100755 (executable)
@@ -234,6 +234,9 @@ if (!$config_use_color) {
 if (!$invert_time) {
    $invert_time = "false";
 }
+if (!$force_username_lowercase) {
+       $force_username_lowercase = "false";
+}
 
 #####################################################################################
 if ($config_use_color == 1) {
index d9502e0..faaafc6 100644 (file)
    } else {
       switch ($type0) {
          case "text":
-            $body = decodeBody($body, $header->encoding);
-            include("../functions/page_header.php");
-            viewText($color, $body, $passed_id, $passed_ent_id, $mailbox, $type1, $wrap_at);
-            break;
+                               if ($type1 == "text" || $type1 == "html") {
+                   $body = decodeBody($body, $header->encoding);
+                   include("../functions/page_header.php");
+                   viewText($color, $body, $passed_id, $passed_ent_id, $mailbox, $type1, $wrap_at);
+            } else {
+               $body = decodeBody($body, $header->encoding);
+               header("Content-type: $type0/$type1; name=\"$filename\"");
+               header("Content-Disposition: attachment; filename=\"$filename\"");
+               echo $body;
+                               }
+                               break;
          case "message":
             $body = decodeBody($body, $header->encoding);
             include("../functions/page_header.php");
index f234550..d8d69c1 100644 (file)
@@ -33,7 +33,8 @@
 
    // In case the last session was not terminated properly, make sure
    // we get a new one.
-   setcookie("PHPSESSID", "", 0, $base_uri);
+       $cookie_params = session_get_cookie_params(); 
+       setcookie(session_name(),"",0,$cookie_params["domain"].$cookie_params["path"]); 
 
    echo "<HTML>";
    echo "<HEAD><TITLE>";