Updating branch refs/heads/master
         to 160b65ed85906b71c3dfa702013f22d36762b7a0 (commit)
       from cdcb55273c2593636d9bec5db3727e3657950033 (commit)

commit 160b65ed85906b71c3dfa702013f22d36762b7a0
Author: Christian Dywan <[email protected]>
Date:   Sun Jun 6 22:58:39 2010 +0200

    Don't decode Base64 if the line is an empty string

 postler/postler-content.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 84d0f8a..378c7c5 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -435,7 +435,7 @@ public class Postler.Content : WebKit.WebView {
                 if (content_encoding == "quoted-printable")
                     line = quoted_printable_decode (line);
                 else if (content_encoding == "base64")
-                    line = (string)GLib.Base64.decode (line);
+                    line = line != "" ? (string)GLib.Base64.decode (line) : "";
                 try {
                     if (charset != null)
                         line = GLib.convert (line, -1, "UTF-8", charset, null);
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to