From ab34b9906e1d936f257b9c1d56eca0926b2628a3 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Thu, 10 Feb 2022 18:05:28 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=88=87=E5=89=B2=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=B0=B1=E5=8F=AF=E4=BB=A5=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/backends/saml2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/backends/saml2/views.py b/apps/authentication/backends/saml2/views.py index a0b03bbad..b0b8fef8d 100644 --- a/apps/authentication/backends/saml2/views.py +++ b/apps/authentication/backends/saml2/views.py @@ -171,7 +171,7 @@ class PrepareRequestMixin: valid_attrs = ['username', 'name', 'email', 'comment', 'phone'] for attr, value in attrs.items(): - attr = attr.rsplit('/')[-1] + attr = attr.rsplit('/', 1)[-1] if attr not in valid_attrs: continue user_attrs[attr] = self.value_to_str(value)