From 5265b0a200b226908b9a0876c211c54612e23488 Mon Sep 17 00:00:00 2001 From: cantor Date: Wed, 23 Jan 2008 03:03:45 +0000 Subject: [PATCH] Moved logout templates to Errors tag. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2699 cb58f699-b61c-0410-a6fe-9272a202ed29 --- schemas/shibboleth-2.0-native-sp-config.xsd | 4 ++-- shibsp/handler/impl/LogoutHandler.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/schemas/shibboleth-2.0-native-sp-config.xsd b/schemas/shibboleth-2.0-native-sp-config.xsd index 90ab0ee..54d9b3a 100644 --- a/schemas/shibboleth-2.0-native-sp-config.xsd +++ b/schemas/shibboleth-2.0-native-sp-config.xsd @@ -487,8 +487,6 @@ - - @@ -626,6 +624,8 @@ + + diff --git a/shibsp/handler/impl/LogoutHandler.cpp b/shibsp/handler/impl/LogoutHandler.cpp index 5342397..8bd3d56 100644 --- a/shibsp/handler/impl/LogoutHandler.cpp +++ b/shibsp/handler/impl/LogoutHandler.cpp @@ -40,7 +40,8 @@ pair LogoutHandler::sendLogoutPage( const Application& application, const HTTPRequest& request, HTTPResponse& response, bool local, const char* status ) const { - pair prop = application.getString(local ? "localLogout" : "globalLogout"); + const PropertySet* props = application.getPropertySet("Errors"); + pair prop = props ? props->getString(local ? "localLogout" : "globalLogout") : pair(false,NULL); if (prop.first) { response.setContentType("text/html"); response.setResponseHeader("Expires","01-Jan-1997 12:00:00 GMT"); @@ -50,7 +51,7 @@ pair LogoutHandler::sendLogoutPage( throw ConfigurationException("Unable to access $1 HTML template.", params(1,local ? "localLogout" : "globalLogout")); TemplateParameters tp; tp.m_request = &request; - tp.setPropertySet(application.getPropertySet("Errors")); + tp.setPropertySet(props); if (status) tp.m_map["logoutStatus"] = status; stringstream str; -- 2.1.4