From 3773de378d48b06c09931e44dca4d274d0bfdce0 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Wed, 19 Dec 2018 20:59:09 +0100 Subject: cookies: extend domain checks to non psl builds Ensure to perform the checks we have to enforce a sane domain in the cookie request. The check for non-PSL enabled builds is quite basic but it's better than nothing. Closes #2964 Reviewed-by: Daniel Stenberg --- tests/data/test8 | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/data') diff --git a/tests/data/test8 b/tests/data/test8 index 2fc190060..e6d0f500e 100644 --- a/tests/data/test8 +++ b/tests/data/test8 @@ -46,6 +46,7 @@ Set-Cookie: trailingspace = removed; path=/we/want; Set-Cookie: nocookie=yes; path=/WE; Set-Cookie: blexp=yesyes; domain=%HOSTIP; domain=%HOSTIP; expiry=totally bad; Set-Cookie: partialip=nono; domain=.0.0.1; +Set-Cookie: chocolate=chip; domain=curl; path=/we/want; -- cgit v1.2.3