cvs: /php4 SAPI.c

From: Date: Fri, 28 Apr 2000 16:47:50 +0000
Subject: cvs: /php4 SAPI.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-14155@lists.php.net to get a copy of this message
hholzgra Fri Apr 28 09:47:50 2000 EDT Modified files: /php4 SAPI.c Log: no more broken scripts by erroneously terminating header()'s argument with a CR-LF Index: php4/SAPI.c diff -u php4/SAPI.c:1.73 php4/SAPI.c:1.74 --- php4/SAPI.c:1.73 Fri Apr 28 06:03:12 2000 +++ php4/SAPI.c Fri Apr 28 09:47:19 2000 @@ -371,6 +371,12 @@ if (duplicate) { header_line = estrndup(header_line, header_line_len); } + + /* cut of trailing spaces, linefeeds and carriage-returns */ + while(isspace(header_line[header_line_len-1])) + header_line[--header_line_len]='\0'; + + sapi_header.header = header_line; sapi_header.header_len = header_line_len;

« previous php.version4 (#14155) next »