From 3f4521bcf4b538b6ac54817cfad22b51e347546d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 17 Jun 2015 03:03:03 -0400 Subject: [PATCH] Fix so plain text signature field uses monospace font (#1490435) --- program/steps/utils/text2html.inc | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/program/steps/utils/text2html.inc b/program/steps/utils/text2html.inc index 1672436..56d15fa 100644 --- a/program/steps/utils/text2html.inc +++ b/program/steps/utils/text2html.inc @@ -21,6 +21,11 @@ $text = stream_get_contents(fopen('php://input', 'r')); +// strip slashes if magic_quotes enabled +if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { + $html = stripslashes($html); +} + $converter = new rcube_text2html($text, false, array('wrap' => true)); header('Content-Type: text/html; charset=' . RCUBE_CHARSET); -- Gitblit v1.9.1