From b71ebe2f0a7fde83866baecf9d3a2929772cbd04 Mon Sep 17 00:00:00 2001 From: David Hawes Date: Mon, 18 Oct 2021 08:50:16 -0400 Subject: [PATCH] Update logingurl caching for #160 --- src/mod_auth_cas.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod_auth_cas.c b/src/mod_auth_cas.c index dbd0387..ed0d2bd 100755 --- a/src/mod_auth_cas.c +++ b/src/mod_auth_cas.c @@ -1344,7 +1344,7 @@ char *createCASCookie(request_rec *r, char *user, cas_saml_attr *attrs, char *ti if(c->CASDebug) { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "entering createCASCookie()"); - ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "login URL = %s", getCASLoginURL(r, c)); + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "login URL = %s", getCASLoginURL(r)); } CASCleanCache(r, c); @@ -1353,7 +1353,7 @@ char *createCASCookie(request_rec *r, char *user, cas_saml_attr *attrs, char *ti e.issued = apr_time_now(); e.lastactive = apr_time_now(); e.path = getCASPath(r); - e.loginurl = getCASLoginURL(r, c); + e.loginurl = getCASLoginURL(r); e.renewed = (d->CASRenew == NULL ? 0 : 1); e.secure = (isSSL(r) == TRUE ? 1 : 0); e.ticket = ticket; @@ -1805,14 +1805,14 @@ apr_byte_t isValidCASCookie(request_rec *r, cas_cfg *c, char *cookie, char **use } /* make sure the loginurl matches */ - if(strcasecmp(cache.loginurl, getCASLoginURL(r, c))) { + if(strcasecmp(cache.loginurl, getCASLoginURL(r))) { if(c->CASDebug) { - ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "cache.loginurl (%s) does not equal getCASLoginURL (%s)", cache.loginurl, getCASLoginURL(r, c)); + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "cache.loginurl (%s) does not equal getCASLoginURL (%s)", cache.loginurl, getCASLoginURL(r)); } return FALSE; } else { if(c->CASDebug) { - ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "cache.loginurl (%s) equals getCASLoginURL (%s)", cache.loginurl, getCASLoginURL(r, c)); + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "cache.loginurl (%s) equals getCASLoginURL (%s)", cache.loginurl, getCASLoginURL(r)); } }