From: Bert Hubert Date: Sun, 25 Mar 2012 16:15:17 +0000 (+0000) Subject: silently skip embedded spaces in base64.. ISC & NSD add these. X-Git-Tag: auth-3.1-rc2~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3880856c880e0a8ca5d777e0d99c0326fe7f2efb;p=pdns silently skip embedded spaces in base64.. ISC & NSD add these. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2536 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/base64.cc b/pdns/base64.cc index 9efb7c00b..b3712d18e 100644 --- a/pdns/base64.cc +++ b/pdns/base64.cc @@ -124,7 +124,8 @@ int B64Decode(const std::string& strInput, std::string& strOutput) // Decode a character if(strInput.at(iInNum)=='=') pad++; - + while(isspace(strInput.at(iInNum))) + iInNum++; cChar = B64Decode1(strInput.at(iInNum++)); } // if