[evolution-data-server] CamelMimeFilterPgp: Ignore right side white spaces
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelMimeFilterPgp: Ignore right side white spaces
- Date: Thu, 10 Jan 2013 19:28:01 +0000 (UTC)
commit 974011cf6c3889bc8e40c3e862cded353c091ddf
Author: Milan Crha <mcrha redhat com>
Date: Thu Jan 10 20:27:12 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]