From e0639901fa2b47a6c733f1ec41b6413ed887c37f Mon Sep 17 00:00:00 2001 From: Matt Putnam Date: Mon, 11 Nov 2013 06:53:51 +0000 Subject: [PATCH] added code to stop raintpl from eating \r on new lines for yealink and similar phones. --- resources/templates/engine/raintpl/rain.tpl.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/templates/engine/raintpl/rain.tpl.class.php b/resources/templates/engine/raintpl/rain.tpl.class.php index 48dd05f9c0..acb30be358 100644 --- a/resources/templates/engine/raintpl/rain.tpl.class.php +++ b/resources/templates/engine/raintpl/rain.tpl.class.php @@ -312,6 +312,9 @@ class RainTPL{ // fix the php-eating-newline-after-closing-tag-problem $template_compiled = str_replace( "?>\n", "?>\n\n", $template_compiled ); + + // fix the php-eating-carridge-returns-after-closing-tag-problem + $template_compiled = str_replace( "?>\r", "?>\r\r", $template_compiled ); // create directories if( !is_dir( $cache_dir ) )