]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
'+' is space in URL encoding.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Aug 2015 12:07:52 +0000 (13:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Aug 2015 12:07:52 +0000 (13:07 +0100)
src/libserver/url.c

index 7d773525e965105d97ff60f22ce822b4de4d2a01..4d9432adce59b01d843f8a6cc5d3902141607387 100644 (file)
@@ -205,8 +205,12 @@ rspamd_unescape_uri (gchar *dst, const gchar *src, gsize size)
                                state = sw_quoted;
                                break;
                        }
-
-                       *d++ = ch;
+                       else if (ch == '+') {
+                               *d++ = ' ';
+                       }
+                       else {
+                               *d++ = ch;
+                       }
                        break;
 
                case sw_quoted: