#26961 [Opn->Csd]: Wrong Content-Disposition-Header

From: Date: Mon, 19 Jan 2004 15:14:00 +0000
Subject: #26961 [Opn->Csd]: Wrong Content-Disposition-Header
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358299@lists.php.net to get a copy of this message
ID: 26961 Updated by: sp@php.net Reported By: php_bugs at ecora dot de -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: irrelevant PHP Version: Irrelevant New Comment: I looked in the RFCs and well, you are right! Fixed this in the XML-source of the manual. May take some time to show up in the manual. Thanks for reporting! Previous Comments: ------------------------------------------------------------------------ [2004-01-19 08:03:25] php_bugs at ecora dot de I forgot the most important information: The wrong header is in the documentation of the header function. ------------------------------------------------------------------------ [2004-01-19 04:44:09] php_bugs at ecora dot de Description: ------------ The Content-Disposition-Header in the 9. (grey) example box is wrong: // It will be called downloaded.pdf header("Content-Disposition: attachment; filename=downloaded.pdf"); // should be: header('Content-Disposition: attachment; filename="downloaded.pdf"'); RFC 2616 (HTTP/1.1), Chapter 19.5.1: content-disposition = "Content-Disposition" ":" disposition-type [..] filename-parm = "filename" "=" quoted-string ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26961&edit=1

« previous php.doc (#969358299) next »