/*
- * Copyright 2001-2009 Internet2
+ * Copyright 2001-2011 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// Route back to return location specified, or use the local template.
const char* dest = request.getParameter("return");
- if (dest)
+ if (dest) {
+ limitRelayState(m_log, app, request, dest);
return make_pair(true, request.sendRedirect(dest));
+ }
return sendLogoutPage(app, request, request, "local");
}