From 366578142ae78c47b89bb242c6c850cf93d78ec5 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Sat, 6 Mar 2021 20:06:31 +0000 Subject: * src/ne_string.h (ne_strparam): Clarify allowed charset values. --- src/ne_string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ne_string.h b/src/ne_string.h index 995cd26..d1d0e71 100644 --- a/src/ne_string.h +++ b/src/ne_string.h @@ -214,8 +214,8 @@ const unsigned char *ne_tolower_array(void) ne_attribute((const)); /* Encodes a extended parameter value for HTTP headers, as defined in * RFC 5987. Returns a malloc-allocated string if the parameter * 'value' needs to be encoded as an extended parameter, or NULL if it - * can be used as a regular parameter. The charset of the string must - * be non-NULL, but the language value can be NULL. */ + * can be used as a regular parameter. The charset must be either + * "UTF-8" or "ISO-8859-1", but the language value can be NULL. */ char *ne_strparam(const char *charset, const char *lang, const unsigned char *value) ne_attribute((nonnull (1, 3))) ne_attribute_malloc; -- cgit v1.2.1