mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05:00
curl: fix handling of -q option
The match of the "-q" option (short for "--disable") should: a) allow concatenation with other single-letters; and b) be case-sensitive, lest confusing with "-Q" ("--quote") Closes #6364
This commit is contained in:
parent
e99e5ab820
commit
6a5e020d4d
@ -2542,7 +2542,7 @@ CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
|
|||||||
|
|
||||||
/* Parse .curlrc if necessary */
|
/* Parse .curlrc if necessary */
|
||||||
if((argc == 1) ||
|
if((argc == 1) ||
|
||||||
(!curl_strequal(first_arg, "-q") &&
|
(strncmp(first_arg, "-q", 2) &&
|
||||||
!curl_strequal(first_arg, "--disable"))) {
|
!curl_strequal(first_arg, "--disable"))) {
|
||||||
parseconfig(NULL, global); /* ignore possible failure */
|
parseconfig(NULL, global); /* ignore possible failure */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user