properly escape special characters in string replace
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user