aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/track_controller.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-10-01 13:00:01 +0100
committerLouise Crow <louise.crow@gmail.com>2014-12-22 16:07:31 +0000
commita5cce7126bf2bbbfba784ea4954d16a964c88214 (patch)
tree2c49851dc8c685b73ea6c68f1a4058ce2bdc2ec1 /app/controllers/track_controller.rb
parentf9e69dfd60af6b1ca819406bf6d9a217cee1f319 (diff)
Fix unvalidated redirects
Diffstat (limited to 'app/controllers/track_controller.rb')
-rw-r--r--app/controllers/track_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/track_controller.rb b/app/controllers/track_controller.rb
index 8020c7b29..d764aaafb 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -214,7 +214,7 @@ class TrackController < ApplicationController
track_thing.destroy
end
- redirect_to params[:r]
+ redirect_to URI.parse(params[:r]).path
end
# Track interest in a request from a non-logged in user