Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2014-10-14 15:18:32 +0400
committerJonne Haß <me@jhass.eu>2014-10-14 15:19:36 +0400
commit8a63f6f1f7b3cc663b5b3fc61bb240fd2d749777 (patch)
treea6536ac04b6aad75678b6c72c0dda759980d468c /app
parentb9cad8485d3ef28b42bd2d4f2d19fb13d42d1b60 (diff)
parent206ec99f8f8df0e2f8244b8539fe81f2b69384b4 (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.rb2
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