Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.4

Request #12195 add Content-Disposition to the headers in display()
Submitted: 2007-10-07 23:06 UTC
From: cwiedmann Assigned: farell
Status: Closed Package: HTML_CSS (version 1.2.0)
PHP Version: 5.2.2 OS: Windows_NT
Roadmaps: 1.3.0    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 + 45 = ?

 
 [2007-10-07 23:06 UTC] cwiedmann (Carsten Wiedmann)
Description: ------------ Hello, I think it's a good idea to add the Content-Disposition header in the browser output. If you opens a css location (http://example.com/getcss.php) and want save this file, the normal filename is "getcss.php". With this patch, the browser saves the file with the filename "getcss.php.css" (basename($_SERVER['PHP_SELF']) . '.css') You can also define an other filename with: | $css->setContentDisposition(true, 'foo.css'); You can also disable this header with: | $css->setContentDisposition(false);

Comments

 [2007-10-08 21:09 UTC] farell (Laurent Laville)
Nice patch Carsten :)
 [2007-10-08 21:22 UTC] farell (Laurent Laville)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.