summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/css.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/css/css.c b/css/css.c
index a81880912..0f447358f 100644
--- a/css/css.c
+++ b/css/css.c
@@ -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;