mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
This reverts commit 8b0503a500
.
This commit is contained in:
parent
9af58855e3
commit
55f2cc3060
@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user