Ignore trailing backslash in unescape_special_chars() (#19585)

This commit is contained in:
Lazula 2022-01-14 15:44:10 -06:00 committed by GitHub
parent 5281f27aa5
commit 26cfc906e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2896,6 +2896,11 @@ static char *unescape_special_chars(const char *s, const char *special_chars) {
dst[j++] = s[i];
continue;
}
if (!s[i + 1]) {
break;
}
dst[j++] = s[i + 1];
i++;
}