[bugs] [Bug 1269] Changed - Content-Type/Content-Disposition Header - don't Save, view aways

bugs at bugs.horde.org bugs at bugs.horde.org
Sat May 31 19:38:24 PDT 2003


http://bugs.horde.org/show_bug.cgi?id=1269

*** shadow/1269	Sat May 31 22:12:39 2003
--- shadow/1269.tmp.21359	Sat May 31 23:38:24 2003
***************
*** 3,9 ****
  Version: 2.2 Stable
  Platform: MSIE 5
  OS/Version: Windows 98
! Status: RESOLVED   
  Resolution: FIXED
  Severity: enhancement
  Priority: P2
--- 3,9 ----
  Version: 2.2 Stable
  Platform: MSIE 5
  OS/Version: Windows 98
! Status: VERIFIED   
  Resolution: FIXED
  Severity: enhancement
  Priority: P2
***************
*** 42,44 ****
--- 42,63 ----
              header('Content-Disposition: attachment; filename=' . $filename);
          }
  
+ 
+ ------- Additional Comments From marca at grupogsn.com.br  05/31/03 23:38 -------
+         /* Content-Type/Content-Disposition Header. */
+         if ($inline) {
+             if (!is_null($cType)) {
+                 header('Content-Type: ' . trim($cType));
+             } else {
+                 header('Content-Type: application/octet-stream');
+             }
+             header('Content-Disposition: inline; filename=' . $filename);
+         } else {
+              if (!is_null($cType)) {
+                 header('Content-Type: ' . trim($cType));
+             } else {
+                 header('Content-Type: application/force-download');
+             }
+             header('Content-Disposition: attachment; filename=' . $filename);
+         }
+ 


More information about the bugs mailing list