mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
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:
parent
c9a05dc4c4
commit
3d31372b9d
@ -81,7 +81,7 @@ bool nscss_create(struct content *c, const http_parameter *params)
|
|||||||
|
|
||||||
/* Find charset specified on HTTP layer, if any */
|
/* Find charset specified on HTTP layer, if any */
|
||||||
error = http_parameter_list_find_item(params, "charset", &charset);
|
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 */
|
/* No charset specified, use fallback, if any */
|
||||||
/** \todo libcss will take this as gospel, which is wrong */
|
/** \todo libcss will take this as gospel, which is wrong */
|
||||||
charset = c->fallback_charset;
|
charset = c->fallback_charset;
|
||||||
|
Loading…
Reference in New Issue
Block a user