projectblacklight / blacklight_advanced_search

Advanced search plugin for Blacklight
http://projectblacklight.org
Other
24 stars 25 forks source link

Non-string values in hash passed to ParsingNesting::Tree::Node.to_query() cause error if to_s of value contains a space #88

Open martinlovell opened 6 years ago

martinlovell commented 6 years ago

Calling ParsingNesting::Tree::Node.to_query() with a hash containing a value that is not a string and contains a space in its to_s representation causes an error. ParsingNesting::Tree::Node.build_local_params attempts to wrap the value using "'" + v + "'". It could use "'#{v}'" to properly handle non-string values, such as arrays.