[evolution-data-server/gnome-3-6] CamelMimeFilterPgp: Ignore right side white spaces
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-6] CamelMimeFilterPgp: Ignore right side white spaces
- Date: Thu, 10 Jan 2013 19:28:14 +0000 (UTC)
commit 8b58035e3e15c8c10b0c085b04df0a2de55a8c17
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 10 20:27:57 2013 +0100
CamelMimeFilterPgp: Ignore right side white spaces
camel/camel-mime-filter-pgp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-mime-filter-pgp.c b/camel/camel-mime-filter-pgp.c
index a85e734..7013391 100644
--- a/camel/camel-mime-filter-pgp.c
+++ b/camel/camel-mime-filter-pgp.c
@@ -31,6 +31,7 @@
#include <string.h>
#include "camel-mime-filter-pgp.h"
+#include "camel-mime-utils.h"
#define CAMEL_MIME_FILTER_PGP_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
@@ -103,6 +104,9 @@ mime_filter_pgp_run (CamelMimeFilter *mime_filter,
if (len > 0 && inptr[-1] == '\r')
len--;
+ while (len > 0 && camel_mime_is_lwsp (start[len - 1]))
+ len--;
+
inptr++;
switch (priv->state) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]