diff options
author | Jonne Haß <me@jhass.eu> | 2014-10-14 15:18:32 +0400 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2014-10-14 15:19:36 +0400 |
commit | 8a63f6f1f7b3cc663b5b3fc61bb240fd2d749777 (patch) | |
tree | a6536ac04b6aad75678b6c72c0dda759980d468c /app | |
parent | b9cad8485d3ef28b42bd2d4f2d19fb13d42d1b60 (diff) | |
parent | 206ec99f8f8df0e2f8244b8539fe81f2b69384b4 (diff) |
Merge pull request #5317 from gdpelican/feature/strip-search-query
Feature/strip search query
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/search_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 6c2f43474..f3a320615 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -20,7 +20,7 @@ class SearchController < ApplicationController private def search_query - @search_query ||= params[:q] || params[:term] || '' + @search_query ||= (params[:q] || params[:term] || '').strip end end |