[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 15:37:48 PDT 2003


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

*** shadow/1269	Sat May 31 19:33:36 2003
--- shadow/1269.tmp.5240	Sat May 31 19:37:48 2003
***************
*** 3,10 ****
  Version: 2.2 Stable
  Platform: MSIE 5
  OS/Version: Windows 98
! Status: NEW   
! Resolution: 
  Severity: enhancement
  Priority: P2
  Component: IMP
--- 3,10 ----
  Version: 2.2 Stable
  Platform: MSIE 5
  OS/Version: Windows 98
! Status: RESOLVED   
! Resolution: FIXED
  Severity: enhancement
  Priority: P2
  Component: IMP
***************
*** 28,30 ****
--- 28,44 ----
  
  ----------------------------------------
  Foz do Iguaçu/PR/Brazil
+ 
+ ------- Additional Comments From marca at grupogsn.com.br  05/31/03 19:37 -------
+         /* 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 {
+             header('Content-Type: application/force-download');
+             header('Content-Disposition: attachment; filename=' . $filename);
+         }
+ 


More information about the bugs mailing list