You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2020/10/28 20:30:29 UTC
[GitHub] [commons-lang] liangshuche opened a new pull request #636: LANG-1610: Fix StringUtils.unwrap throws StringIndexOutOfBoundsException
liangshuche opened a new pull request #636:
URL: https://github.com/apache/commons-lang/pull/636
When wrapToken.length() * 2 is larger than str.length(), and str starts with and ends with wrapToken, the function calls str.substring(beginIndex, endIndex) with beginIndex larger than endIndex, which throws a StringIndexOutOfBoundsException.
It should return the original string since it is not quoted properly with the wrapToken according to documentation.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [commons-lang] garydgregory commented on pull request #636: LANG-1610: Fix StringUtils.unwrap throws StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
garydgregory commented on pull request #636:
URL: https://github.com/apache/commons-lang/pull/636#issuecomment-729173831
Thank you @liangshuche ! :-)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [commons-lang] coveralls commented on pull request #636: LANG-1610: Fix StringUtils.unwrap throws StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
coveralls commented on pull request #636:
URL: https://github.com/apache/commons-lang/pull/636#issuecomment-718246198
[](https://coveralls.io/builds/34542038)
Coverage remained the same at 94.946% when pulling **10d1339d94a1a82ee2250d2e1a04d3b603f12d42 on liangshuche:LANG-1610-unwrap** into **d9f5b615675d525bccc2c04ad8f261a783386c4c on apache:master**.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [commons-lang] garydgregory merged pull request #636: LANG-1610: Fix StringUtils.unwrap throws StringIndexOutOfBoundsException
Posted by GitBox <gi...@apache.org>.
garydgregory merged pull request #636:
URL: https://github.com/apache/commons-lang/pull/636
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org