iliaa Mon Mar 8 21:24:03 2004 EDT
Modified files:
/php-src/main SAPI.c
Log:
Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
disabled).
http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.182&r2=1.183&ty=u
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.182 php-src/main/SAPI.c:1.183
--- php-src/main/SAPI.c:1.182 Thu Jan 8 03:17:53 2004
+++ php-src/main/SAPI.c Mon Mar 8 21:24:02 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: SAPI.c,v 1.182 2004/01/08 08:17:53 andi Exp $ */
+/* $Id: SAPI.c,v 1.183 2004/03/09 02:24:02 iliaa Exp $ */
#include <ctype.h>
#include <sys/stat.h>
@@ -657,14 +657,9 @@
#else
{
myuid = php_getuid();
- result = emalloc(sizeof("WWW-Authenticate:
")+20);
- newlen = sprintf(result, "WWW-Authenticate:
%ld", myuid);
- newheader = estrndup(result,newlen);
efree(header_line);
- sapi_header.header = newheader;
- sapi_header.header_len = newlen;
- efree(result);
- }
+ sapi_header.header_len =
spprintf(&sapi_header.header, 0, "WWW-Authenticate: Basic realm=\"%ld\"", myuid);
+ }
#endif
}
if (sapi_header.header==header_line) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php