You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "btpka3 (JIRA)" <ji...@apache.org> on 2013/05/08 05:51:16 UTC
[jira] [Commented] (CODEC-140) isBase64 returns true for any UTF8
string
[ https://issues.apache.org/jira/browse/CODEC-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651596#comment-13651596 ]
btpka3 commented on CODEC-140:
------------------------------
Should enhance Base64.isBase64(byte[]) to check (1) lengh%4==0 after remove whitespace (2) '=' can not occured in the middle ?
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira