Chop linefeed from timestamp
authorscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 29 Nov 2012 01:55:33 +0000 (01:55 +0000)
committerscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 29 Nov 2012 01:55:33 +0000 (01:55 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3822 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/util/TemplateParameters.cpp

index c7021d4..757176d 100644 (file)
@@ -63,6 +63,8 @@ void TemplateParameters::setPropertySet(const PropertySet* props)
 #else
     m_map["now"] = ctime(&now);
 #endif
+    string& s = m_map["now"];
+    s.erase(s.begin() + s.size() - 1);
 }
 
 const XMLToolingException* TemplateParameters::getRichException() const