forked from github/server
make parse_token trim ignored characters like zero-width spaces.
This commit is contained in:
parent
c4cb44f961
commit
34ac5154e7
|
@ -223,6 +223,7 @@ char *parse_token(const char **str, char *lbuf, size_t buflen)
|
||||||
}
|
}
|
||||||
|
|
||||||
*cursor = '\0';
|
*cursor = '\0';
|
||||||
|
unicode_utf8_trim(lbuf);
|
||||||
*str = ctoken;
|
*str = ctoken;
|
||||||
return lbuf;
|
return lbuf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue