aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-05-27 11:16:04 +0000
committerfrancis <francis>2008-05-27 11:16:04 +0000
commitfd9c5f14863e7aa02d31e22f9bb11484bb595966 (patch)
treefb86a1efc528bd59b41b99e9c8419846b4b73f39 /app/controllers/track_controller.rb
parentbc2267d366f627ab7208273b2ece2af1b847c086 (diff)
Make search tracks work for queries with dots and slashes.
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index 6bdd8960f..b010a5798 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: track_controller.rb,v 1.21 2008-05-21 14:51:34 francis Exp $
+# $Id: track_controller.rb,v 1.22 2008-05-27 11:16:05 francis Exp $
class TrackController < ApplicationController
@@ -97,7 +97,11 @@ class TrackController < ApplicationController
# Track a search term
def track_search_query
- @query = params[:query]
+ # XXX should be better thing in rails routes than having to do this
+ # join just to get / and . to work in a query.
+ query_array = params[:query_array]
+ @query = query_array.join("/")
+
@track_thing = TrackThing.create_track_for_search_query(@query)
ret = self.track_set
if ret