glob: fix [a-c] globbing regression

Brought in ee4f76606c

Added test case 1280 to verify

Reported-by: Dave Reisner

Bug: ee4f76606c (commitcomment-19823146)
This commit is contained in:
Daniel Stenberg 2016-11-15 08:22:54 +01:00
parent f82bbe01c8
commit 8c630ef059
3 changed files with 63 additions and 0 deletions

View file

@ -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);