]> git.ipfire.org Git - thirdparty/curl.git/commit
digest: pass over leading spaces in qop values
authorDaniel Stenberg <daniel@haxx.se>
Sun, 7 Aug 2022 22:30:58 +0000 (00:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Aug 2022 06:28:04 +0000 (08:28 +0200)
commit0ad7c8d7d599a7b63fb7117b2c59999b55c54c2d
treed0a8c482ea6875626a14a3124505a56f9e5d3f18
parent3fe24ea322d432c47891cf27b50de1f063f5a2a1
digest: pass over leading spaces in qop values

When parsing the "qop=" parameter of the digest authentication, and the
value is provided within quotes, the list of values can have leading
white space which the parser previously did not handle correctly.

Add test case 388 to verify.

Reported-by: vlubart on github
Fixes #9264
Closes #9270
lib/vauth/digest.c
tests/data/Makefile.inc
tests/data/test388 [new file with mode: 0644]