Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…"\n" in fields_for helper)
  • Loading branch information...
commit 1e6fcf6702bc1f4cfbe7f610266febecdf44fe6d 1 parent dbec136
Dan Pickett authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/searchlogic/rails_helpers.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.