properly escape special characters in string replace

This commit is contained in:
2021-08-19 12:47:58 -04:00
parent 07cb108c19
commit b90d08e1df
+2 -2
View File
@@ -6,8 +6,8 @@
)
## Make $INTEGRATOR_ID URL safe
$INTEGRATOR_ID = $INTEGRATOR_ID -replace '@','%40'
$INTEGRATOR_ID = $INTEGRATOR_ID -replace '+','%2B'
$INTEGRATOR_ID = $INTEGRATOR_ID -replace [Regex]::Escape('@'),'%40'
$INTEGRATOR_ID = $INTEGRATOR_ID -replace [Regex]::Escape('+'),'%2B'
## Set the Atera URL for your specific environment
$BASE_URL = 'https://emberkom.atera.com'