forked from github/server
Merge branch 'master' into develop
This commit is contained in:
commit
6790442dcb
1 changed files with 3 additions and 3 deletions
|
@ -195,18 +195,18 @@ char *parse_token(const char **str, char *lbuf, size_t buflen)
|
||||||
}
|
}
|
||||||
else if (utf8_character == '"' || utf8_character == '\'') {
|
else if (utf8_character == '"' || utf8_character == '\'') {
|
||||||
if (utf8_character == quotechar) {
|
if (utf8_character == quotechar) {
|
||||||
++ctoken;
|
quotechar = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (quotechar == 0 && cstart == ctoken) {
|
else if (quotechar == 0 && cstart == ctoken) {
|
||||||
quotechar = utf8_character;
|
quotechar = utf8_character;
|
||||||
++ctoken;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (cursor - buflen < lbuf - len) {
|
if (cursor - buflen < lbuf - len) {
|
||||||
*cursor++ = *ctoken++;
|
*cursor++ = *ctoken;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
++ctoken;
|
||||||
}
|
}
|
||||||
else if (utf8_character == SPACE_REPLACEMENT) {
|
else if (utf8_character == SPACE_REPLACEMENT) {
|
||||||
if (cursor - buflen < lbuf - len) {
|
if (cursor - buflen < lbuf - len) {
|
||||||
|
|
Loading…
Reference in a new issue