Added a comment: Fix

master
https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ 2015-02-25 01:43:27 -04:00 committed by admin
parent f07355f9cb
commit f4da5a9902
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ"
nickname="Qi"
subject="Fix"
date="2015-02-25T05:43:26Z"
content="""
I fixed it by adding
```
sub decode($$;$) {
my ( $name, $octets, $check ) = @_;
return undef unless defined $octets;
return $octets if Encode::is_utf8($octets); # add this check
$octets .= '';
```
"""]]