From: Eric Bollengier Date: Sun, 23 Dec 2007 22:36:10 +0000 (+0000) Subject: ebl fix replace bug X-Git-Tag: Release-3.0.0~2105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce2880c6a5ecb6e35c25b679c91f000ee221da01;p=bacula%2Fbacula ebl fix replace bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6122 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/script/tpl_generate.pl b/gui/bweb/script/tpl_generate.pl index d2783d5f2f..e47a042acf 100755 --- a/gui/bweb/script/tpl_generate.pl +++ b/gui/bweb/script/tpl_generate.pl @@ -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; }