Skip to content

Commit

Permalink
Joined html in #to_html wasn't html_safe if rails_xss is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flink authored and mislav committed May 26, 2010
1 parent ba754cd commit 92ef3a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/will_paginate/view_helpers.rb
Expand Up @@ -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

Expand Down

0 comments on commit 92ef3a6

Please sign in to comment.