Skip to content

Comments

Change $userrequest source in redirect()#5

Open
MrAlexWeber wants to merge 1 commit intoWPDevelopers:masterfrom
MrAlexWeber:patch-1
Open

Change $userrequest source in redirect()#5
MrAlexWeber wants to merge 1 commit intoWPDevelopers:masterfrom
MrAlexWeber:patch-1

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