require 'uri'
require 'cgi'
+class Unauthorized < Exception; end
+
class ApplicationController < ActionController::Base
include Redmine::I18n
protect_from_forgery
rescue_from ActionController::InvalidAuthenticityToken, :with => :invalid_authenticity_token
+ rescue_from ::Unauthorized, :with => :deny_access
include Redmine::Search::Controller
include Redmine::MenuManager::MenuController