]> granicus.if.org Git - php/commitdiff
Added missing charset.
authorYasuo Ohgaki <yohgaki@php.net>
Sun, 8 Sep 2002 01:06:29 +0000 (01:06 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Sun, 8 Sep 2002 01:06:29 +0000 (01:06 +0000)
main/SAPI.c

index 910e362cbe7bef0f99a973124e3ef2660a235a63..a2a2129ecdbbbd917bb745e9c53127a9449122eb 100644 (file)
@@ -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;