Permalink
Browse files

EPIC commit that ensures searchlogic plays nicely w/ rails_xss (drop …

…"\n" in fields_for helper)
  • Loading branch information...
Dan Pickett authored and binarylogic committed Dec 9, 2009
1 parent dbec136 commit 1e6fcf6702bc1f4cfbe7f610266febecdf44fe6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/searchlogic/rails_helpers.rb
@@ -66,7 +66,7 @@ def form_for(*args, &block)
def fields_for(*args, &block)
if search_obj = args.find { |arg| arg.is_a?(Searchlogic::Search) }
args.unshift(:search) if args.first == search_obj
- concat(content_tag("div", hidden_field_tag("#{args.first}[order]", search_obj.order)) + "\n")
+ concat(content_tag("div", hidden_field_tag("#{args.first}[order]", search_obj.order)))
super
else
super

0 comments on commit 1e6fcf6

Please sign in to comment.