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

Double homepage because of __home__ #7585

Closed
Wiejeben opened this issue Feb 17, 2021 · 2 comments
Closed

Double homepage because of __home__ #7585

Wiejeben opened this issue Feb 17, 2021 · 2 comments
Labels

Comments

@Wiejeben
Copy link
Contributor

Wiejeben commented Feb 17, 2021

Description

We noticed that __home__ was being indexed on a website of ours. After looking into it it turned out that the __home__ URI both exists as http://example.com/ and http://example.com/__home__ and is returning a 200 response.

It also works on craftcms.com:

> curl -I https://craftcms.com/__home__
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Wed, 17 Feb 2021 10:39:40 GMT
Link: <https://craftcms.com>; rel='canonical'
Referrer-Policy: no-referrer-when-downgrade
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Robots-Tag: all
Connection: keep-alive

Steps to reproduce

  1. Create a single with the homepage checkbox enabled
  2. Browse to/__home__ and you should see that the homepage exists twice

Additional info

So far I have been able to recreate this on multiple 3.x versions.

  • Craft version: 3.6.6
  • PHP version: 7.3.27
  • Database driver & version: 7.4.14
@brandonkelly
Copy link
Member

Thanks for reporting that. Just fixed for the next release.

@brandonkelly
Copy link
Member

Craft 3.6.7 is out now with this fix. Thanks again for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants