From ce2880c6a5ecb6e35c25b679c91f000ee221da01 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 23 Dec 2007 22:36:10 +0000 Subject: [PATCH] ebl fix replace bug git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6122 91ce42f0-d328-0410-95d8-f526ca767f89 --- gui/bweb/script/tpl_generate.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.39.5