Просмотр исходного кода

- fixed bug in conf.pl where no default was set for $force_username_lowercase
- fixed bug in download.php that didn't display rtf correctly

Luke Ehresman 24 лет назад
Родитель
Сommit
83123540e4
4 измененных файлов с 18 добавлено и 5 удалено
  1. 2 0
      ChangeLog
  2. 3 0
      config/conf.pl
  3. 11 4
      src/download.php
  4. 2 1
      src/login.php

+ 2 - 0
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.

+ 3 - 0
config/conf.pl

@@ -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) {

+ 11 - 4
src/download.php

@@ -130,10 +130,17 @@
    } 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");

+ 2 - 1
src/login.php

@@ -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>";