tool_getparam: accept a blank -w ""

Added test 468 to verify.

Regression from 07bcae89d5 (shipped in 8.6.0)
Reported-by: Thomas Pyle
Fixes #13144
Closes #13145
This commit is contained in:
Daniel Stenberg 2024-03-18 23:01:22 +01:00
parent b6006381fb
commit 6bd4ca0ef6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 62 additions and 2 deletions

View file

@ -2658,7 +2658,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
warnf(global, "Failed to read %s", fname);
}
else
err = getstr(&config->writeout, nextarg, DENY_BLANK);
err = getstr(&config->writeout, nextarg, ALLOW_BLANK);
break;
case C_PREPROXY: /* --preproxy */
err = getstr(&config->preproxy, nextarg, DENY_BLANK);