cvs: /php3/functions head.c
| From: | Hartmut Holzgraefe | Date: | Fri, 28 Apr 2000 17:20:32 +0000 |
| Subject: | cvs: /php3/functions head.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18267@lists.php.net to get a copy of this message | ||
hholzgra Fri Apr 28 10:20:32 2000 EDT
Modified files:
/php3/functions head.c
Log:
no more broken scripts by erroneously terminating header()'s
argument with CR-LF
Index: php3/functions/head.c
diff -u php3/functions/head.c:1.125 php3/functions/head.c:1.126
--- php3/functions/head.c:1.125 Sun Feb 20 14:21:04 2000
+++ php3/functions/head.c Fri Apr 28 10:20:01 2000
@@ -26,7 +26,7 @@
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
-/* $Id: head.c,v 1.125 2000/02/20 22:21:04 eschmid Exp $ */
+/* $Id: head.c,v 1.126 2000/04/28 17:20:01 hholzgra Exp $ */
#include <stdio.h>
#include "php.h"
#include "internal_functions.h"
@@ -111,6 +111,13 @@
char temp2[32];
#endif
TLS_VARS;
+
+ for(r=strHeader;*r;r++) {}
+ for(--r;r>=strHeader;--r)
+ if(isspace(*r))
+ *r='\0';
+ else
+ break;
if (GLOBAL(php3_HeaderPrinted) == 1) {
php3_error(E_WARNING, "Cannot add more header information - the header was already sent
"