From 55f2cc3060598088d37e96e8508b27b84097bdf5 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 5 May 2020 13:47:04 +0200 Subject: [PATCH] Revert "B #4590: Santize login, remove whitespace (#4655)" This reverts commit 8b0503a50068d1c1c0d4b5c3e63fb98021bf9c00. --- src/authm/AuthManager.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/authm/AuthManager.cc b/src/authm/AuthManager.cc index 206ed50d87..d47e2544d7 100644 --- a/src/authm/AuthManager.cc +++ b/src/authm/AuthManager.cc @@ -20,7 +20,6 @@ #include "NebulaUtil.h" #include "PoolObjectAuth.h" #include "Nebula.h" -#include /* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */ @@ -207,13 +206,6 @@ void AuthManager::authenticate_action(AuthRequest * ar) goto error_driver; } - // ------------------------------------------------------------------------ - // Sanitize the login - remove leading and trailing spaces - // ------------------------------------------------------------------------ - - ar->username = regex_replace(ar->username, regex("^(%20|%09|%0A|%0D)+"), ""); - ar->username = regex_replace(ar->username, regex("(%20|%09|%0A|%0D)+$"), ""); - // ------------------------------------------------------------------------ // Queue the request // ------------------------------------------------------------------------