Permalink
Browse files

Content with newlines or tabs not to be encoded to base64.

  • Loading branch information...
1 parent 58cd36c commit c68e06f3784e26d363b0739c4454795bd23fa025 @emasaka emasaka committed May 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/XML/Atom/Content.pm
View
2 lib/XML/Atom/Content.pm
@@ -147,7 +147,7 @@ sub _is_printable {
? $data
: eval { Encode::decode("utf-8", $data, Encode::FB_CROAK) } );
- return ! $@ && $decoded =~ /^\p{IsPrint}*$/;
+ return ! $@ && $decoded =~ /^[\p{IsPrint}\s]*$/;
}
1;

0 comments on commit c68e06f

Please sign in to comment.