summaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-11-25 19:07:53 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2018-11-25 19:52:08 -0500
commit80638252dcdd3ed8aea276245a902f2ec47f2b4f (patch)
treedd0d855ae518c3231868127b706fa0ea80688d7c /src/buffer.h
parente8e59396d3ab45a61b89fd7ee631cb700d6f53d7 (diff)
downloadlighttpd-git-80638252dcdd3ed8aea276245a902f2ec47f2b4f.tar.gz
[multiple] validate UTF-8 in url-decoded paths
validate UTF-8 in url-decoded paths obtained elsewhere than from request (burl_normalize(), if enabled with server.http-parseopts, checks url for overlong encodings of ASCII chars in the HTTP request-line)
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 189d526c..733cb43a 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -134,6 +134,7 @@ void buffer_copy_string_encoded_cgi_varnames(buffer *b, const char *s, size_t s_
void buffer_urldecode_path(buffer *url);
void buffer_urldecode_query(buffer *url);
+int buffer_is_valid_UTF8(const buffer *b);
void buffer_path_simplify(buffer *dest, buffer *src);
void buffer_to_lower(buffer *b);