From 14e0a17dbce8b7ea0518d89e7f03578473a955f0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 20 Feb 2020 17:13:50 +0100 Subject: [PATCH] ui: don't remove dashes when auto generating slug --- passbook/core/static/js/passbook.js | 5 ++--- passbook/sources/saml/xml_render.py | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/passbook/core/static/js/passbook.js b/passbook/core/static/js/passbook.js index cb89bbd27..fae9fc1fb 100644 --- a/passbook/core/static/js/passbook.js +++ b/passbook/core/static/js/passbook.js @@ -1,9 +1,8 @@ function convertToSlug(Text) { return Text .toLowerCase() - .replace(/[^\w ]+/g, '') - .replace(/ +/g, '-') - ; + .replace(/[^\w ]+/g, '-') + .replace(/ +/g, '-'); } diff --git a/passbook/sources/saml/xml_render.py b/passbook/sources/saml/xml_render.py index 79fc9bd83..6d6726b14 100644 --- a/passbook/sources/saml/xml_render.py +++ b/passbook/sources/saml/xml_render.py @@ -15,7 +15,6 @@ def get_authnrequest_xml(parameters, signed=False): params["AUTHN_REQUEST_SIGNATURE"] = "" unsigned = render_to_string("saml/sp/xml/authn_request.xml", params) - LOGGER.debug("AuthN Request", unsigned=unsigned) if not signed: return unsigned @@ -24,5 +23,4 @@ def get_authnrequest_xml(parameters, signed=False): params["AUTHN_REQUEST_SIGNATURE"] = signature_xml signed = render_to_string("saml/sp/xml/authn_request.xml", params) - LOGGER.debug("AuthN Request", signed=signed) return signed