From: Moritz Bunkus Date: Mon, 15 Jul 2013 14:34:45 +0000 (+0200) Subject: JavaScript-Plugin: Carriage returns escapen X-Git-Tag: release-3.1.0beta1~161^2~54 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=590c3aaa30805a3b5eb7c5f7ce18d893f85fe459;p=kivitendo-erp.git JavaScript-Plugin: Carriage returns escapen --- 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; }