]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix replace bug
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 23 Dec 2007 22:36:10 +0000 (22:36 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 23 Dec 2007 22:36:10 +0000 (22:36 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6122 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/script/tpl_generate.pl

index d2783d5f2f25c8aa5c50fbea986d8963a77ef92e..e47a042acfe0cf19ad082de59eab76a224d4f664 100755 (executable)
@@ -88,11 +88,9 @@ foreach my $f (@ARGV)
            }
 
            $s =~ s/[?]/\\?/g;
-           $s =~ s/@/\\@/g;
-           $r =~ s/@/\\@/g;
            $s =~ s/\$/\\\$/g;
            $r =~ s/\$/\\\$/g;
-           $s =~ s/([()])/\\$1/g;
+           $s =~ s/([\[\]\(\)])/\\$1/g;
 
            $l =~ s/__${s}__/$r/g;
        }