Compare commits

..

No commits in common. "d631c7f13c52e1cdce4057f81591b66faaa03f0d" and "2e8cb81970e5097e576d4e97866603f37f8e872c" have entirely different histories.

3 changed files with 5 additions and 4 deletions

View file

@ -62,11 +62,10 @@ class BannedLinks
public function genEntries($links, $uri): \Traversable
{
foreach ($links as $link) {
if (preg_match($link->getRegexpRule(), $uri))
if (preg_match($link->getRegexpRule(), $uri)) {
yield $link->getId();
else if ($this->isDomainBanned($link->getDomain()))
yield $link->getId();
}
}
public function check(string $url): ?array

View file

@ -15,6 +15,8 @@ final class AwayPresenter extends OpenVKPresenter
if (OPENVK_ROOT_CONF["openvk"]["preferences"]["susLinks"]["warnings"])
if (sizeof($checkBanEntries) > 0)
$this->pass("openvk!Away->view", $checkBanEntries[0]);
}
}
header("HTTP/1.0 302 Found");
header("X-Robots-Tag: noindex, nofollow, noarchive");

View file

@ -38,6 +38,7 @@ body.dimmed > .dimmer #absolute_territory {
}
.ovk-diag-head {
height: 25%;
padding: 5px;
background-color: #757575;
border-bottom: 1px solid #3e3e3e;
@ -48,12 +49,11 @@ body.dimmed > .dimmer #absolute_territory {
.ovk-diag-body {
padding: 20px;
overflow-y: auto;
max-height: 80vh
}
.ovk-diag-action {
padding: 10px;
height: 25%;
background-color: #d4d4d4;
text-align: right;
}