phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc/class.browser.inc.php, 1.14.2.2.2.9


From: nomail
Subject: [Phpgroupware-cvs] phpgwapi/inc/class.browser.inc.php, 1.14.2.2.2.9
Date: Fri, 16 Jul 2004 06:36:46 +0200

Update of /phpgwapi/inc
Modified Files:
        Branch: Version-0_9_16-branch
          class.browser.inc.php

date: 2004/07/16 04:36:46;  author: skwashd;  state: Exp;  lines: +9 -5

Log Message:
fixes bug #5258
=====================================================================
Index: phpgwapi/inc/class.browser.inc.php
diff -u phpgwapi/inc/class.browser.inc.php:1.14.2.2.2.8 
phpgwapi/inc/class.browser.inc.php:1.14.2.2.2.9
--- phpgwapi/inc/class.browser.inc.php:1.14.2.2.2.8     Fri Feb 27 23:02:05 2004
+++ phpgwapi/inc/class.browser.inc.php  Fri Jul 16 04:36:46 2004
@@ -262,18 +262,22 @@
                                {
                                        $attachment = '';
                                }
-                               else
+                               elseif( ($this->get_agent() != 'IE') && ($mime 
!= 'text/plain') )
                                {
                                        $attachment = ' attachment;';
                                }
+                               else
+                               {
+                                       $attachment = ' inline;';
+                               }
 
                                // Show this for all
-                               header('Content-disposition:'.$attachment.' 
filename="'.$fn.'"');
-                               header('Content-type: '.$mime);
+                               header('Content-Disposition:'.$attachment.' 
filename="'.$fn.'"');
+                               header('Content-Type: '.$mime);
 
                                if($length)
                                {
-                                       header('Content-length: '.$length);
+                                       header('Content-Length: '.$length);
                                }
 
                                if($nocache)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]