mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Added missing charset.
This commit is contained in:
parent
b6c2275353
commit
71fb0299d1
@ -266,6 +266,7 @@ SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC
|
||||
newtype = emalloc(newlen + 1);
|
||||
PHP_STRLCPY(newtype, *mimetype, newlen + 1, len);
|
||||
strlcat(newtype, ";charset=", newlen + 1);
|
||||
strlcat(newtype, charset, newlen + 1);
|
||||
efree(*mimetype);
|
||||
*mimetype = newtype;
|
||||
return newlen;
|
||||
|
Loading…
Reference in New Issue
Block a user