mirror of
https://github.com/curl/curl.git
synced 2024-12-03 06:20:31 +08:00
tool_operate: check for --disable case *sensitively*
curl command line options are specified with the correct casing or they don't match Closes #14103
This commit is contained in:
parent
b8e098a057
commit
bf88cdb790
@ -2813,7 +2813,7 @@ CURLcode operate(struct GlobalConfig *global, int argc, argv_item_t argv[])
|
||||
/* Parse .curlrc if necessary */
|
||||
if((argc == 1) ||
|
||||
(first_arg && strncmp(first_arg, "-q", 2) &&
|
||||
!curl_strequal(first_arg, "--disable"))) {
|
||||
strcmp(first_arg, "--disable"))) {
|
||||
parseconfig(NULL, global); /* ignore possible failure */
|
||||
|
||||
/* If we had no arguments then make sure a url was specified in .curlrc */
|
||||
|
Loading…
Reference in New Issue
Block a user