From 40affe6649402a145d3c629c5449e12235ee9817 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 25 May 2021 14:54:12 +0200 Subject: [PATCH] fix(powershell): double-quote escape (#2828) --- centreon/common/powershell/functions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/common/powershell/functions.pm b/centreon/common/powershell/functions.pm index 2340a540f..2795014b3 100644 --- a/centreon/common/powershell/functions.pm +++ b/centreon/common/powershell/functions.pm @@ -29,7 +29,7 @@ sub escape_jsonstring { my $ps = q{ function Escape-JSONString($str) { if ($str -eq $null) {return ""} - $str = $str.ToString().Replace('"','\"').Replace('\\','\\\\').Replace("`n",'\n').Replace("`r",'\r').Replace("`t",'\t') + $str = $str.ToString().Replace('\\','\\\\').Replace('"','\"').Replace("`n",'\n').Replace("`r",'\r').Replace("`t",'\t') return $str; } };