aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-15 08:22:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-15 08:22:54 +0100
commit8c630ef059f7e8acd4eef97c85793c80b75f145d (patch)
tree7babd2deca04552b223536ea0395296da151097c /src
parentf82bbe01c8835b8788c69f05362bb789766473cd (diff)
glob: fix [a-c] globbing regression
Brought in ee4f76606cf Added test case 1280 to verify Reported-by: Dave Reisner Bug: https://github.com/curl/curl/commit/ee4f76606cfa4ee068bf28edd37c8dae7e8db317#commitcomment-19823146
Diffstat (limited to 'src')
-rw-r--r--src/tool_urlglob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index 09d21b61e..08e5d094c 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -213,6 +213,9 @@ static CURLcode glob_range(URLGlob *glob, char **patternp,
else if(end_c != ']')
/* then this is wrong */
rc = 0;
+ else
+ /* end_c == ']' */
+ pattern += 4;
}
*posp += (pattern - *patternp);