From a57152d74330b21fcc3aab2228c8e63182433757 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Thu, 27 May 2010 00:27:49 -0500 Subject: [PATCH] Fix Category Listing Bugs The links to the category listings were bogus, and the category listing page needed some XSS-unprotection. --- app/views/wiki/list.rhtml | 6 +++--- lib/chunks/category.rb | 5 +++-- lib/wiki_content.rb | 2 +- test/test_helper.rb | 20 ++++++++++++++++++- test/unit/chunks/category_test.rb | 6 ++++-- .../tasks/form_spam_protection_tasks.rake | 4 ---- 6 files changed, 30 insertions(+), 13 deletions(-) delete mode 100644 vendor/plugins/form_spam_protection/tasks/form_spam_protection_tasks.rake diff --git a/app/views/wiki/list.rhtml b/app/views/wiki/list.rhtml index acd20568..b5876fb3 100644 --- a/app/views/wiki/list.rhtml +++ b/app/views/wiki/list.rhtml @@ -6,7 +6,7 @@ <%- unless @pages_that_are_orphaned.empty? && @page_names_that_are_wanted.empty? -%>

All Pages -
All pages in <%= @set_name %> listed alphabetically +
All pages in <%= raw @set_name %> listed alphabetically

<%- end -%> @@ -30,7 +30,7 @@ Wanted Pages
- Nonexistent pages that other pages in <%= @set_name %> reference + Nonexistent pages that other pages in <%= raw @set_name %> reference @@ -51,7 +51,7 @@ <%- unless @pages_that_are_orphaned.empty? -%>

Orphaned Pages -
Pages in <%= @set_name %> that no other page reference +
Pages in <%= raw @set_name %> that no other page reference