From 2e5523fd6cce6701acaa65cf9c8f24ce3b8092e7 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 10 May 2005 15:29:16 +0000 Subject: allows \n in base64 strings --- lasso/xml/xml.c | 4 ++-- 1 file 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; -- cgit