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 --- timestring.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'timestring.rb') diff --git a/timestring.rb b/timestring.rb index 3fd0eb1..d93eb81 100644 --- a/timestring.rb +++ b/timestring.rb @@ -72,7 +72,7 @@ class TimeString end def to_s if @time - "#{@date} #{time_to_s}" + "#{CGI.escapeHTML(@date.to_s)} #{time_to_s}" else CGI.escapeHTML(@date.to_s) end -- cgit v1.2.3