Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Joined html in #to_html wasn't html_safe if rails_xss is present.

  • Loading branch information...
commit 92ef3a6b749e55ec90a3650e6131d5a613afbdbf 1 parent ba754cd
@Flink Flink authored mislav committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/will_paginate/view_helpers.rb
View
1  lib/will_paginate/view_helpers.rb
@@ -238,6 +238,7 @@ def to_html
links.push page_link_or_span(@collection.next_page, 'disabled next_page', @options[:next_label])
html = links.join(@options[:separator])
+ html.html_safe! if html.respond_to? :html_safe!
@options[:container] ? @template.content_tag(:div, html, html_attributes) : html
end
Please sign in to comment.
Something went wrong with that request. Please try again.