mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Fix credential storing with spaces
This commit is contained in:
parent
a4947d5449
commit
a90e31be4f
@ -14,7 +14,7 @@
|
||||
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
||||
*
|
||||
* ============================================================================
|
||||
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
||||
* Copyright (c) 2005-2022 Artica Soluciones Tecnologicas
|
||||
* Please see http://pandorafms.org for full contribution list
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
@ -644,8 +644,15 @@ class CredentialStore extends Wizard
|
||||
];
|
||||
|
||||
// Spaces are not allowed.
|
||||
$values['identifier'] = preg_replace('/\s+/', '-', trim($identifier));
|
||||
|
||||
$values['identifier'] = \io_safe_input(
|
||||
preg_replace(
|
||||
'/\s+/',
|
||||
'-',
|
||||
trim(
|
||||
\io_safe_output($identifier)
|
||||
)
|
||||
)
|
||||
);
|
||||
return $values;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user