1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

Revert "B #4590: Santize login, remove whitespace (#4655)"

This reverts commit 8b0503a500.
This commit is contained in:
Ruben S. Montero 2020-05-05 13:47:04 +02:00
parent 9af58855e3
commit 55f2cc3060
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -20,7 +20,6 @@
#include "NebulaUtil.h"
#include "PoolObjectAuth.h"
#include "Nebula.h"
#include <regex>
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
@ -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
// ------------------------------------------------------------------------