[Xfce4-commits] <postler:master> Always decode =20 as a space, not hex, for quote handling

Christian Dywan noreply at xfce.org
Sun Aug 1 17:14:02 CEST 2010


Updating branch refs/heads/master
         to 39e066da975c2e0532159d87bd66fa2d6d9e0603 (commit)
       from a0b632ee8bdb94f548dbf90bc6162a8c5df567ec (commit)

commit 39e066da975c2e0532159d87bd66fa2d6d9e0603
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jul 28 13:48:09 2010 +0200

    Always decode =20 as a space, not hex, for quote handling

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

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 9dd34b9..b69f6e9 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -268,7 +268,9 @@ public class Postler.Content : WebKit.WebView {
     };
 
     internal static string quoted_printable_decode (string quoted) {
-        string unquoted = quoted.replace (" =", " ").replace ("_", " ");
+        /* =20 is not hex-encoded, to faciliate quote handling */
+        string unquoted = quoted.replace (" =", " ")
+            .replace ("_", " ").replace ("=20", " ");
         try {
             var regex = new GLib.Regex ("([=]([0-9A-F][0-9A-F]))");
             return regex.replace (unquoted, -1, 0, "&#x\\2;");



More information about the Xfce4-commits mailing list