aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/user_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-25 17:25:08 +0000
committerfrancis <francis>2008-03-25 17:25:08 +0000
commit596ef551443f5916e5cbce8834b7fd708207b57f (patch)
tree8c0de727515f9662c5dccbe45f52e6465b6ee4e3 /app/controllers/user_controller.rb
parentfcb843b5e42c20ccf25c86d11a256b62bcd52f95 (diff)
requested_from: requested_by: and type: searches.
Diffstat (limited to 'app/controllers/user_controller.rb')
-rw-r--r--app/controllers/user_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
index 61ea74923..5e6d5ba3a 100644
--- a/app/controllers/user_controller.rb
+++ b/app/controllers/user_controller.rb
@@ -4,13 +4,13 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: user_controller.rb,v 1.44 2008-03-21 15:31:31 francis Exp $
+# $Id: user_controller.rb,v 1.45 2008-03-25 17:25:09 francis Exp $
class UserController < ApplicationController
# Show page about a set of users with same url name
def show
- if MySociety::Format.simplify_url_part(params[:url_name]) != params[:url_name]
- redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name])
+ if MySociety::Format.simplify_url_part(params[:url_name], 32) != params[:url_name]
+ redirect_to :url_name => MySociety::Format.simplify_url_part(params[:url_name], 32)
return
end