Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Referer header field parsing in ServerRelativeArchivalRedirect to a method for easier customization #312

Merged
merged 2 commits into from
Mar 17, 2017

Conversation

kngenie
Copy link
Contributor

@kngenie kngenie commented Mar 16, 2016

We found an issue with Referer header generated by Flash plugin for Firefox and want to extend ServerRelativeArchivalRedirect with experimental method of obtaining ArchivalUrl context. Unfortunately ServerRelativeArchivalRedirect does not have extension point for this purpose.

This patch separates out Referer parsing in handleRequestWithCollection into a protected method, so that developer can extend ServerRelativeArchivalRedirect with experimental leak-source detection mechanism.

See also: internetarchive#57

…a method for easier customization.

Cherry-picked:
- 955ccd2
- 06f71e6
See also: #57
@kngenie kngenie changed the title Move Refer header field parsing in ServerRelativeArchivalRedirect to a method for easier customization Move Referer header field parsing in ServerRelativeArchivalRedirect to a method for easier customization Mar 18, 2016
@ldko
Copy link
Member

ldko commented Mar 17, 2017

This looks works for me. 👍 I will merge it with modified release_notes.md, since the version has changed at this point.

@ldko ldko merged commit 4acc5c4 into iipc:master Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants