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:33:13 +0000
commitb6cd9b05ae27370088c04973413730040f4ff08c (patch)
treee533edd7b65ebb89a2e04eb4feb0bda2bf73c1dc /app/controllers/track_controller.rb
parent5fc4e4992069088684e40cabdf7128cf6f9ad67d (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 dccc52efc..d8572fa26 100644
--- a/app/controllers/track_controller.rb
+++ b/app/controllers/track_controller.rb
@@ -206,7 +206,7 @@ class TrackController < ApplicationController
track_thing.destroy
end
- redirect_to params[:r]
+ redirect_to URI.parse(params[:r]).path
end