summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-05-08 12:24:32 +0000
committerolavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53>2013-05-08 12:24:32 +0000
commitf0b539815b0a54fdca00dda6d7a70f135869d8d8 (patch)
tree578bd517c1af835e9b31fb3d0860bab008fdc153
parent569ebfaea43475fef73512b11f0f976f8909d238 (diff)
downloadmod_auth_mellon-f0b539815b0a54fdca00dda6d7a70f135869d8d8.zip
mod_auth_mellon-f0b539815b0a54fdca00dda6d7a70f135869d8d8.tar.gz
mod_auth_mellon-f0b539815b0a54fdca00dda6d7a70f135869d8d8.tar.xz
Handle empty RelayState the same as missing RelayState.
git-svn-id: https://modmellon.googlecode.com/svn/trunk@209 a716ebb1-153a-0410-b759-cfb97c6a1b53
-rw-r--r--auth_mellon_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c
index 996daea..ffbbc24 100644
--- a/auth_mellon_handler.c
+++ b/auth_mellon_handler.c
@@ -1920,7 +1920,7 @@ static int am_handle_reply_common(request_rec *r, LassoLogin *login,
/* No RelayState - we don't know what to do. Use default login path. */
- if(relay_state == NULL) {
+ if(relay_state == NULL || strlen(relay_state) == 0) {
dir_cfg = am_get_dir_cfg(r);
apr_table_setn(r->headers_out, "Location", dir_cfg->login_path);
return HTTP_SEE_OTHER;