[icinga-checkins] icinga.org: icinga2/feature/configconvert-2743: configconvert: fix already replaced quotes escaping

git at icinga.org git at icinga.org
Wed Jun 26 17:53:31 CEST 2013


Module: icinga2
Branch: feature/configconvert-2743
Commit: 6ed811cd7839645a65c649dc854ac89870853b5f
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=6ed811cd7839645a65c649dc854ac89870853b5f

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Wed Jun 26 17:52:54 2013 +0200

configconvert: fix already replaced quotes escaping

refs #2743

---

 tools/configconvert/Icinga2/Utils.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/configconvert/Icinga2/Utils.pm b/tools/configconvert/Icinga2/Utils.pm
index 904e60d..d41ae77 100644
--- a/tools/configconvert/Icinga2/Utils.pm
+++ b/tools/configconvert/Icinga2/Utils.pm
@@ -57,8 +57,8 @@ sub errlog {
 sub escape_str {
     my $str = shift;
 
-    $str =~ s/\\/\\\\"/g;
     $str =~ s/"/\\"/g;
+    $str =~ s/\\\\"/\\"/g;
 
     return $str;
 }





More information about the icinga-checkins mailing list