summaryrefslogtreecommitdiff
path: root/lib/http_negotiate.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-09-05 23:21:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-09-06 08:34:30 +0200
commit6f9fb7ec2d7cb389a0da5a1d0617ce592115a6a8 (patch)
tree44b640deb9b58ca0f50a60395ee7259c19344506 /lib/http_negotiate.c
parent8dd95da35be27c28da9e0d082f3ce02d2200b82a (diff)
downloadcurl-6f9fb7ec2d7cb389a0da5a1d0617ce592115a6a8.tar.gz
misc: ISSPACE() => ISBLANK()
Instances of ISSPACE() use that should rather use ISBLANK(). I think somewhat carelessly used because it sounds as if it checks for space or whitespace, but also includes %0a to %0d. For parsing purposes, we should only accept what we must and not be overly liberal. It leads to surprises and surprises lead to bad things. Closes #9432
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r--lib/http_negotiate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index 0ac4ead09..5909f85b0 100644
--- a/lib/http_negotiate.c
+++ b/lib/http_negotiate.c
@@ -84,7 +84,7 @@ CURLcode Curl_input_negotiate(struct Curl_easy *data, struct connectdata *conn,
/* Obtain the input token, if any */
header += strlen("Negotiate");
- while(*header && ISSPACE(*header))
+ while(*header && ISBLANK(*header))
header++;
len = strlen(header);