From cf71ecc80f442a6c4c5d4b9ca796ca4ee2cfa35f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 1 Mar 2025 00:21:46 +0100 Subject: [PATCH] Revert "curl_ctype.h: somewhat revolutionary but make ISSPACE and ISBLANK the same" This reverts commit f22e6e9e95815663ee847b212b481b57b97ed460. --- lib/curl_ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/curl_ctype.h b/lib/curl_ctype.h index 8eb41727b4..48c3c37c35 100644 --- a/lib/curl_ctype.h +++ b/lib/curl_ctype.h @@ -43,7 +43,7 @@ #define ISLOWER(x) (((x) >= 'a') && ((x) <= 'z')) #define ISDIGIT(x) (((x) >= '0') && ((x) <= '9')) #define ISBLANK(x) (((x) == ' ') || ((x) == '\t')) -#define ISSPACE(x) ISBLANK(x) +#define ISSPACE(x) (ISBLANK(x) || (((x) >= 0xa) && ((x) <= 0x0d))) #define ISURLPUNTCS(x) (((x) == '-') || ((x) == '.') || ((x) == '_') || \ ((x) == '~')) #define ISUNRESERVED(x) (ISALNUM(x) || ISURLPUNTCS(x))