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    

 [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 ( 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);


 [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 by the end of next Sunday (CET). If this was a problem with the 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.