]> git.ipfire.org Git - thirdparty/curl.git/commit
misc: ISSPACE() => ISBLANK()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Sep 2022 21:21:15 +0000 (23:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Sep 2022 06:34:30 +0000 (08:34 +0200)
commit6f9fb7ec2d7cb389a0da5a1d0617ce592115a6a8
tree44b640deb9b58ca0f50a60395ee7259c19344506
parent8dd95da35be27c28da9e0d082f3ce02d2200b82a
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
20 files changed:
lib/content_encoding.c
lib/curl_range.c
lib/ftplistparser.c
lib/h2h3.c
lib/headers.c
lib/hsts.c
lib/http_digest.c
lib/http_negotiate.c
lib/netrc.c
lib/openldap.c
lib/rtsp.c
lib/strtoofft.c
lib/vauth/digest.c
lib/vauth/digest_sspi.c
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vtls/nss.c
lib/vtls/openssl.c
src/tool_cb_hdr.c
src/tool_msgs.c