From abb20e95654d2a427bd596b571c3327a5a353b26 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 15 Jul 2013 16:34:45 +0200 Subject: [PATCH] JavaScript-Plugin: Carriage returns escapen --- SL/Template/Plugin/JavaScript.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Template/Plugin/JavaScript.pm b/SL/Template/Plugin/JavaScript.pm index 241ea0ea3..2e05bed57 100644 --- a/SL/Template/Plugin/JavaScript.pm +++ b/SL/Template/Plugin/JavaScript.pm @@ -24,6 +24,7 @@ sub escape { $text =~ s|\\|\\\\|g; $text =~ s|\"|\\\"|g; $text =~ s|\n|\\n|g; + $text =~ s|\r|\\r|g; return $text; } -- 2.20.1