mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-08 17:06:05 +02:00
fix(powershell): double-quote escape (#2828)
This commit is contained in:
parent
8a3ea635fc
commit
40affe6649
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user