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

Relative path #1

Open
herewithme opened this issue Dec 4, 2019 · 1 comment
Open

Relative path #1

herewithme opened this issue Dec 4, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@herewithme
Copy link
Member

The plugin dont detect infinite loop with relative path :

Code bugged, added on header.php

wp_redirect( $_SERVER['REQUEST_URI'] );
exit();

Test comparaison failed :

if ( untrailingslashit( $location ) === untrailingslashit( $this->get_current_url() ) ) {

string(22) "/blog/2019/11/18/test/"
string(48) "https://mysite/blog/2019/11/18/test/"`

@herewithme herewithme added the bug Something isn't working label Dec 4, 2019
@herewithme
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants