git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@3962
e93f8b46-1217-0410-a6f0-
8f06a7374b81
end
end
+ def back_url
+ params[:back_url] || request.env['HTTP_REFERER']
+ end
+
def redirect_back_or_default(default)
back_url = CGI.unescape(params[:back_url].to_s)
if !back_url.blank?
@priorities = IssuePriority.all.reverse
@statuses = IssueStatus.find(:all, :order => 'position')
- @back = params[:back_url] || request.env['HTTP_REFERER']
+ @back = back_url
render :layout => false
end