aboutsummaryrefslogtreecommitdiff
path: root/timestring.rb
diff options
context:
space:
mode:
Diffstat (limited to 'timestring.rb')
-rw-r--r--timestring.rb2
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