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

Change $userrequest source in redirect() #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrAlexWeber
Copy link

While testing a site that uses a mixed HTTP/HTTPS setup, I ran into an issue here related to the get_protocol() function. It seems to me that neither get_protocol() nor get_address() are necessary, as PHP provides $_SERVER['REQUEST_URI'], which has already the name of the requested page without hostname or protocol. Please consider merging this change to further simplify this awesome plugin and add support for even more sites (e.g. those with multiple server aliases, etc.)

While testing a site that uses a mixed HTTP/HTTPS setup, I ran into an issue here related to the get_protocol() function. It seems to me that neither get_protocol() nor get_address() are necessary, as PHP provides $_SERVER['REQUEST_URI'], which has already the name of the requested page without hostname or protocol. Please consider merging this change to further simplify this awesome plugin and add support for even more sites (e.g. those with multiple server aliases, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant