?? Feb 2004, Version 4.3.5
- Fixed possible crashes inside socket extension, due to missing check inside
allocation functions. (Ilia)
+- Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
+ disabled). (Ilia)
- Fixed bug #27505 (htmlentities() does not handle BIG5 correctly). (Ilia,
ywliu at hotmail dot com)
- Fixed bug #27460 (base64_decode() does not handle extra padding).
#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) {