From 89afd0a64110710c135b558614cdd755a181349b Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 7 Jan 2019 22:03:42 +0100 Subject: code refactoring: better output encoding --- error.cgi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'error.cgi') diff --git a/error.cgi b/error.cgi index 4b4f82f..b71e0c0 100755 --- a/error.cgi +++ b/error.cgi @@ -27,11 +27,6 @@ else $d = Dudle.new(:title => _("Error"), :hide_lang_chooser => true, :load_extensions => false) end -def urlescape(str) - CGI.escapeHTML(CGI.escape(str).gsub("+","%20")) -end - - if File.exists?($conf.errorlog) begin a = File.open($conf.errorlog,"r").to_a @@ -50,7 +45,7 @@ end errormessagebody = _("Hi!\n\nI found a bug in your application at %{urlofsite}.\nI did the following:\n\n\n\n\nI am using \n%{errormessage}\nSincerely,\n") % {:errormessage => errormessage, :urlofsite => $conf.siteurl} subject = _("Bug in Dudle") - $d << _("An error occurred while executing Dudle.
Please send an error report, including your browser, operating system, and what you did to %{admin}.") % {:admin => "#{$conf.bugreportmail}"} + $d << _("An error occurred while executing Dudle.
Please send an error report, including your browser, operating system, and what you did to %{admin}.") % {:admin => "#{$conf.bugreportmail}"} if (errorstr) errorheadstr = _("Please include the following as well:") -- cgit v1.2.3