From 8622e14ebf32c6d031500665854c19080ea492bf Mon Sep 17 00:00:00 2001 From: David Schmitz <schmitz@lrz.de> Date: Fri, 1 Mar 2019 10:14:10 +0000 Subject: [PATCH] edugain login: update for error message handling --- flowspec/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flowspec/views.py b/flowspec/views.py index 55112c9e..3d58ac4d 100644 --- a/flowspec/views.py +++ b/flowspec/views.py @@ -531,7 +531,11 @@ def get_shibboleth_attrib_info_from_settings(attrib_key, add_long_info): if attrib_display_name != None and attrib_display_name!="": attrib_info = attrib_display_name else: - attrib_info = attrib_key # TODO: remove ^HTTP_ and then ^SHIB_ + attrib_info = attrib_key # remove ^HTTP_ and then ^SHIB_ + if attrib_info.startswith("HTTP_"): + attrib_info[len("HTTP_"):] + if attrib_info.startswith("SHIB_"): + attrib_info[len("SHIB_"):] if add_long_info and attrib_display_addinfo != None and attrib_display_addinfo!="": attrib_info = attrib_info+" ("+attrib_display_addinfo+")" -- GitLab