Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Ignore changing Accept-Encoding header, fixes #56 #73

Merged
merged 1 commit into from
Jan 3, 2014

Conversation

rennex
Copy link
Contributor

@rennex rennex commented Jan 3, 2014

In this pull request, I've done the bare minimum changes to fix issue #56 when it comes to <video> and <audio> tags -- removed tracking of the Accept-Encoding header.

But as I stated in the thread on that issue, in my opinion this whole SessionHijacking protection is ill-advised, and I'd like to suggest removing it. It is trivial for an attacker to circumvent, and prone to other false positives in the future (there's no telling if a normally operating browser decides to prefer other languages for different URLs or different types of media). Also, browser are updated frequently and that changes the User-Agent string, effectively logging users out of any sites using this protection, even if the login isn't supposed to expire in months.

rkh added a commit that referenced this pull request Jan 3, 2014
Ignore changing Accept-Encoding header, fixes #56
@rkh rkh merged commit 7ec22d0 into sinatra:master Jan 3, 2014
@rennex rennex deleted the fix_session_hijacking branch January 12, 2014 03:46
zzak pushed a commit that referenced this pull request Aug 12, 2016
Ignore changing Accept-Encoding header, fixes #56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants