Fix it so that empty charset strings fall back properly. Fixes http://www.arm.com/community/partners/all_partners.php

svn path=/trunk/netsurf/; revision=10452
This commit is contained in:
Daniel Silverstone 2010-04-22 12:19:17 +00:00
parent c9a05dc4c4
commit 3d31372b9d
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ bool nscss_create(struct content *c, const http_parameter *params)
/* Find charset specified on HTTP layer, if any */
error = http_parameter_list_find_item(params, "charset", &charset);
if (error != NSERROR_OK) {
if (error != NSERROR_OK || *charset == '\0') {
/* No charset specified, use fallback, if any */
/** \todo libcss will take this as gospel, which is wrong */
charset = c->fallback_charset;