Skip to content

Commit

Permalink
make view helpers "HTML safe" for Rails 2.3.5 with rails_xss plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 1, 2009
1 parent 839d821 commit f617a14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/will_paginate/view_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ def page_entries_info(collection, options = {})
]
end
end


if respond_to? :safe_helper
safe_helper :will_paginate, :paginated_section, :page_entries_info
end

def self.total_pages_for_collection(collection) #:nodoc:
if collection.respond_to?('page_count') and !collection.respond_to?('total_pages')
WillPaginate::Deprecation.warn %{
Expand Down

0 comments on commit f617a14

Please sign in to comment.