commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "btpka3 (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CODEC-140) isBase64 returns true for any UTF8 string
Date Wed, 08 May 2013 03:51:16 GMT

    [ 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

Mime
View raw message