diff --git a/rack-protection/lib/rack/protection.rb b/rack-protection/lib/rack/protection.rb index eb7c8ff6..d2262c59 100644 --- a/rack-protection/lib/rack/protection.rb +++ b/rack-protection/lib/rack/protection.rb @@ -12,7 +12,7 @@ module Rack autoload :PathTraversal, 'rack/protection/path_traversal' autoload :RemoteReferrer, 'rack/protection/remote_referrer' autoload :RemoteToken, 'rack/protection/remote_token' - autoload :SessionHijacking, 'rack/protection/session_hihacking' + autoload :SessionHijacking, 'rack/protection/session_hijacking' autoload :XSSHeader, 'rack/protection/xss_header' def self.new(app, options = {}) @@ -24,7 +24,7 @@ module Rack use PathTraversal, options unless except.include? :path_traversal use RemoteReferrer, options unless except.include? :remote_referrer use RemoteToken, options unless except.include? :remote_token - use SessionHijacking, options unless except.include? :session_hihacking + use SessionHijacking, options unless except.include? :session_hijacking use XSSHeader, options unless except.include? :xss_header run app end.to_app diff --git a/rack-protection/lib/rack/protection/session_hihacking.rb b/rack-protection/lib/rack/protection/session_hijacking.rb similarity index 100% rename from rack-protection/lib/rack/protection/session_hihacking.rb rename to rack-protection/lib/rack/protection/session_hijacking.rb diff --git a/rack-protection/spec/session_hihacking_spec.rb b/rack-protection/spec/session_hijacking_spec.rb similarity index 100% rename from rack-protection/spec/session_hihacking_spec.rb rename to rack-protection/spec/session_hijacking_spec.rb