Update AboutPresenter.php

Accidentally blocked the entire wall, oops :D
This commit is contained in:
Ilya Prokopenko 2021-12-28 10:50:19 +07:00 committed by GitHub
parent b32f366b01
commit 126abe3bbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ final class AboutPresenter extends OpenVKPresenter
function renderRobotsTxt(): void
{
$data = "# robots.txt file for openvk\n"
$text = "# robots.txt file for openvk\n"
. "#\n"
. "# this includes only those links that are not in any way\n"
. "# covered from unauthorized persons (for example, due to\n"
@ -102,11 +102,10 @@ final class AboutPresenter extends OpenVKPresenter
. "Disallow: *?lg=\n"
. "Disallow: *hash=\n"
. "Disallow: *?jReturnTo=\n"
. "Disallow: /wall*\n"
. "Disallow: /method/*\n"
. "Disallow: /token*";
header("Content-Type: text/plain");
exit($data);
exit($text);
}
function renderHumansTxt(): void