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

feature(routing): allow more reliable URL path rewriting #9390

Merged
merged 1 commit into from Feb 16, 2016

Conversation

mrclay
Copy link
Member

@mrclay mrclay commented Feb 16, 2016

Adds an early called route:rewrite hook expressly for URL rewriting. Changes there update the request object and affect the default context, and functions like current_page_url().

Removes legacy magic quotes-related code.

Fixes #9388

@mrclay
Copy link
Member Author

mrclay commented Feb 16, 2016

My goal was to minimize the API surface area we have to support, and make conversion to the new hook easy.

@mrclay
Copy link
Member Author

mrclay commented Feb 16, 2016

While this only covers the the path, you can still use get/set_input for GET vars, but ?hl and ?view have already been read by the time this hook executes.

Adds an early called `route:rewrite` hook expressly for URL rewriting.
Changes there update the request object and affect the default context,
and functions like current_page_url().

Removes legacy magic quotes-related code.

Fixes Elgg#9388
@hypeJunction
Copy link
Contributor

👍 LGTM

@juho-jaakkola
Copy link
Member

LGTM

mrclay added a commit that referenced this pull request Feb 16, 2016
feature(routing): allow more reliable URL path rewriting
@mrclay mrclay merged commit c751830 into Elgg:2.x Feb 16, 2016
@mrclay mrclay deleted the rewrite_path branch February 16, 2016 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants