diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2019-01-07 22:03:42 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2019-01-07 22:03:42 +0100 |
commit | 89afd0a64110710c135b558614cdd755a181349b (patch) | |
tree | fa7a3be955e2abea55cf77161189080258db90ee /timestring.rb | |
parent | 4429d6269252a329fa579e19ff1a32ce694a5a4d (diff) |
code refactoring: better output encoding
Diffstat (limited to 'timestring.rb')
-rw-r--r-- | timestring.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |