[ 
https://issues.apache.org/jira/browse/CODEC-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651805#comment-13651805
 ] 

Sebb commented on CODEC-140:
----------------------------

Adding further validation to check the length etc would change the behaviour of 
the method, which is currently clearly documented to only check for valid 
characters in the Base64 alphabet.

Not sure it's worth creating 3 other methods to add this extra validation.
                
> 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

Reply via email to