- 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 5d9dddbfae63cf27ae8b6d38a08ecc07daa8cb4c..a51ab3af3fa17bf42080d25d1d822d2c1df17035 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 4d47933d6245f04fcd2222989a19ceca5568a24e..68a5ee69d7a43469c2f14a26d6b4b174345e8a8c 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 d9502e0ee325eabb1572643657ea321f7d677fb2..faaafc62eb35d272a177e29508da92b1f7f4eeef 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 f234550972e1ddc7816a5977203fd8e000b84a4d..d8d69c14f818ffd1b83d0df72ebc42bc582d24c1 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>";