summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-05-10 15:29:16 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-05-10 15:29:16 +0000
commit2e5523fd6cce6701acaa65cf9c8f24ce3b8092e7 (patch)
tree8b623350abfcf6d1167883e9e3644a41539f8e94
parent1608fdee29a0d8fdaa024e9df30b11963b29b418 (diff)
downloadlasso-2e5523fd6cce6701acaa65cf9c8f24ce3b8092e7.tar.gz
lasso-2e5523fd6cce6701acaa65cf9c8f24ce3b8092e7.tar.xz
lasso-2e5523fd6cce6701acaa65cf9c8f24ce3b8092e7.zip
allows \n in base64 strings
-rw-r--r--lasso/xml/xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
index 6ed28bb9..42df8198 100644
--- a/lasso/xml/xml.c
+++ b/lasso/xml/xml.c
@@ -794,8 +794,8 @@ is_base64(const char *message)
const char *c;
c = message;
- while (*c != 0 && (isalnum(*c) || *c == '+' || *c == '/')) c++;
- while (*c == '=') c++; /* trailing = */
+ while (*c != 0 && (isalnum(*c) || *c == '+' || *c == '/' || *c == '\n')) c++;
+ while (*c == '=' || *c == '\n') c++; /* trailing = */
if (*c == 0)
return TRUE;