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^2~51^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=abb20e95654d2a427bd596b571c3327a5a353b26;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; }