From 1f5404213d4b93ef573e99112536ed5af6643770 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 28 Oct 2014 03:01:01 +0000 Subject: Bug 1059684: markdown text should not be rendered within a
 tag
 r=glob,a=glob

---
 process_bug.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'process_bug.cgi')

diff --git a/process_bug.cgi b/process_bug.cgi
index b47a3b1cf..b3d979960 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -233,8 +233,8 @@ if (should_set('keywords')) {
     $set_all_fields{keywords}->{$action} = $cgi->param('keywords');
 }
 if (should_set('comment')) {
-    my $is_markdown = ($user->settings->{use_markdown}->{is_enabled} &&
-                            $cgi->param('use_markdown')) ? 1 : 0;
+    my $is_markdown = ($user->use_markdown
+                       && $cgi->param('use_markdown') eq '1') ? 1 : 0;
 
     $set_all_fields{comment} = {
         body        => scalar $cgi->param('comment'),
-- 
cgit v1.2.3-24-g4f1b