From 51d0274dc6b40830d38bcc209bb9c402433c1b38 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Tue, 4 Sep 2012 13:21:19 +0200 Subject: [PATCH] SL::Template::Plugin::L::_J ums escaping von ' und \ erweitert --- SL/Template/Plugin/L.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index f90a948d8..9cf5ebb85 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -28,8 +28,8 @@ sub _H { } sub _J { - my $string = "" . shift; - $string =~ s/\"/\\\"/g; + my $string = shift; + $string =~ s/(\"|\'|\\)/\\$1/g; return $string; } -- 2.20.1