cvs: php-src(PHP_4_3) /main SAPI.c

From: Date: Mon, 11 Aug 2003 19:40:52 +0000
Subject: cvs: php-src(PHP_4_3) /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23101@lists.php.net to get a copy of this message
helly Mon Aug 11 15:40:52 2003 EDT Modified files: (Branch: PHP_4_3) /php-src/main SAPI.c Log: MFH: Bugfix #25044 Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.155.2.11 php-src/main/SAPI.c:1.155.2.12 --- php-src/main/SAPI.c:1.155.2.11 Wed Jun 18 17:58:07 2003 +++ php-src/main/SAPI.c Mon Aug 11 15:40:52 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.155.2.11 2003/06/18 21:58:07 sniper Exp $ */ +/* $Id: SAPI.c,v 1.155.2.12 2003/08/11 19:40:52 helly Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -575,8 +575,9 @@ efree(mimetype); SG(sapi_headers).send_default_content_type = 0; } else if (!STRCASECMP(header_line, "Location")) { - if (SG(sapi_headers).http_response_code < 300 || - SG(sapi_headers).http_response_code > 307) { + if ((SG(sapi_headers).http_response_code < 300 || + SG(sapi_headers).http_response_code > 307) && + SG(sapi_headers).http_response_code != 201) { /* Return a Found Redirect if one is not already specified */ sapi_update_response_code(302 TSRMLS_CC); }

« previous php.cvs (#23101) next »