mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Fix (#384)
This commit is contained in:
parent
060c7b22c0
commit
254a5e060c
|
@ -125,7 +125,11 @@ fn create_home_directory(info: &HomeDirectoryInfo, home_prefix: &str) -> Result<
|
|||
// Does the aliases exist
|
||||
for alias in info.aliases.iter() {
|
||||
// Sanity check the alias.
|
||||
let alias = alias.replace(".", "").replace("/", "").replace("\\", "");
|
||||
// let alias = alias.replace(".", "").replace("/", "").replace("\\", "");
|
||||
let alias = alias
|
||||
.trim_start_matches('.')
|
||||
.replace("/", "")
|
||||
.replace("\\", "");
|
||||
let alias_path_raw = format!("{}{}", home_prefix, alias);
|
||||
let alias_path = Path::new(&alias_path_raw);
|
||||
|
||||
|
|
Loading…
Reference in a new issue