dxbjavid opened a new pull request, #748:
URL: https://github.com/apache/commons-text/pull/748
`StringEscapeUtils.unescapeCsv("\"")` throws
`StringIndexOutOfBoundsException: String index out of range: -1`.
A single `"` passes the "is this a quoted value" check because `charAt(0)`
and `charAt(length - 1)` read the same character, so
`CsvUnescaper.translateWhole` strips quotes with `subSequence(1, length - 1)` =
`subSequence(1, 0)`. Require length >= 2 so a lone quote falls through
unchanged like other unquoted input.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]