From: Metabox Date: Sat, 3 Aug 2019 18:40:39 +0000 (+1000) Subject: is_rtf was not working. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=cda06ae099e47307b3c1379dfba34aa265ee9996;p=LifeLog.git is_rtf was not working. --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index e6a5e17..9582fa6 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -773,7 +773,8 @@ sub processSubmit { my $view_all = $cgi->param('rs_all'); my $is_rtf = $cgi->param('rtf'); my $rtf = 0; - $rtf = 1 if $is_rtf=="on"; + $rtf = 1 if $is_rtf eq 'on'; + try { #Apostroph's need to be replaced with doubles and white space fixed for the SQL.