about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-04-16 17:19:04 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-04-16 17:19:04 +0200
commit1c379b7ef46edeaa7a8238902546ed7215b02fe2 (patch)
tree54dbd17e3337d657d036e90edb186efc720338a5 /app/services
parent1a37d7e252aa41fd1c66e780e1a2a1426d8f3545 (diff)
Remove extra spaces from search API queries and public account headers (fixes #7129) (#7152)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/search_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/search_service.rb b/app/services/search_service.rb
index 00a8b3dd7..5bb395942 100644
--- a/app/services/search_service.rb
+++ b/app/services/search_service.rb
@@ -4,7 +4,7 @@ class SearchService < BaseService
   attr_accessor :query, :account, :limit, :resolve
 
   def call(query, limit, resolve = false, account = nil)
-    @query   = query
+    @query   = query.strip
     @account = account
     @limit   = limit
     @resolve = resolve