as
- <%= text_field_tag :author, @author,
+ <%= text_field_tag :author, h(@author.delete("\x01-\x08\x0B\x0C\x0E-\x1F")),
:onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;",
:onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %>
|
diff --git a/app/views/wiki/locked.rhtml b/app/views/wiki/locked.rhtml
index ee0cf814..1e1236cf 100644
--- a/app/views/wiki/locked.rhtml
+++ b/app/views/wiki/locked.rhtml
@@ -1,7 +1,7 @@
<% @title = "#{@page.plain_name} is locked" %>
- <%= link_to_page(@page.locked_by) %>
+ <%= link_to_page(h(@page.locked_by.delete("\x01-\x08\x0B\x0C\x0E-\x1F"))) %>
<% if @page.lock_duration(Time.now) == 0 %>
just started editing this page.
<% else %>
diff --git a/app/views/wiki/page.rhtml b/app/views/wiki/page.rhtml
index 83566a2a..60805768 100644
--- a/app/views/wiki/page.rhtml
+++ b/app/views/wiki/page.rhtml
@@ -18,7 +18,7 @@
<%= @page.revisions? ? "Revised" : "Created" %> on <%= format_date(@page.revised_at) %>
- by <%= author_link(@page) %>
+ by <%= author_link(@page).delete("\x01-\x08\x0B\x0C\x0E-\x1F") %>
<%= "(#{@page.author.ip})" if @page.author.respond_to?(:ip) %>
<% if @web.count_pages? %>
<% total_chars = @page.content.length %>
diff --git a/app/views/wiki/revision.rhtml b/app/views/wiki/revision.rhtml
index 6cf9e177..0db3283c 100644
--- a/app/views/wiki/revision.rhtml
+++ b/app/views/wiki/revision.rhtml
@@ -17,7 +17,7 @@
<%= "Revision from #{format_date(@revision.revised_at)} by" %>
- <%= link_to_page @revision.author %>
+ <%= link_to_page @revision.author.delete("\x01-\x08\x0B\x0C\x0E-\x1F") %>