[
https://issues.apache.org/jira/browse/CODEC-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262209#comment-13262209
]
Mohit Anchlia commented on CODEC-140:
-------------------------------------
I thought isBase64 would return only true for those strings that were
originally encoded to base64. For eg:
String b = Base64.encodeBase64(bytes);
Base64.isBase64(b); //return true expected
Base64.isBase64("Hello"); // return false expected since it wasn't encoded to
bsae64
I think isBase64 doesn't work this way as I thought it would?
> isBase64 returns true for any UTF8 string
> -----------------------------------------
>
> Key: CODEC-140
> URL: https://issues.apache.org/jira/browse/CODEC-140
> Project: Commons Codec
> Issue Type: Bug
> Affects Versions: 1.6
> Environment: windows/linux
> Reporter: Mohit Anchlia
> Assignee: Julius Davies
>
> I just called Base64.isBase64("Hello") for instance and it returns true. I
> thought it would return true only if it is valid base64 encoded string.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira