Skip to content

Commit f158c2e

Browse files
committed
Implemented handling of backslash in username in profile
1 parent 296bde6 commit f158c2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/StorageGRID-Webscale.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ function ConvertFrom-SgwConfigFile {
166166
$Content = $Content -replace "\A","["
167167
$Content = $Content -replace "},?\s*\n?\s*\z","}]"
168168

169+
# TODO: Implement proper handling of special characters!
170+
$Content = $Content -replace '\\','\\'
171+
169172
$Config = ConvertFrom-Json -InputObject $Content
170173
Write-Output $Config
171174
}

0 commit comments

Comments
 (0)