forked from github/server
make parse_token trim ignored characters like zero-width spaces.
This commit is contained in:
parent
1e6f1f8bd8
commit
8bf8b68571
|
@ -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