* @return bool
*/
private function isSafeIP()
{
$safeIPs = $this->wafParams->getValue('neverblockips', '');
$safeIPs = array_map(function ($x) {
return is_array($x) ? $x[0] : $x;
}, $safeIPs);
if (!empty($safeIPs))
{
* @return bool
*/
private function isSafeIP()
{
$safeIPs = $this->wafParams->getValue('neverblockips', '');
$safeIPs = array_map(function ($x) {
return is_array($x) ? $x[0] : $x;
}, $safeIPs);
if (!empty($safeIPs))
{
{
return false;
}
// Make sure this IP is not in the "Do not block these IPs" list
if ($this->isSafeIP())
{
return true;
}
// Make sure this IP doesn't resolve to a whitelisted domain
if ($this->wafParams->getValue('tsrenable', 0))
{
$this->processAutoBan($reason);
}
return $this->logBlockedRequest($reason, $extraLogInformation, $extraLogTableInformation);
}
/**
* Blocks the request, logs it and processes the IP auto-ban.
*
}
}
if ($block)
{
$this->exceptionsHandler->logWithoutBlocking('404shield');
}
}
/**
* Removes the language tag from the URLs generated by multilanguage sites.
if (!method_exists($o, $name))
{
continue;
}
$o->{$name}(...$arguments);
}
}
private function loadVersion(): void
{
$this->runVoidFeature('onContentPrepareForm', $form, $data);
}
public function onError(Event $event): void
{
$this->runVoidFeature('onError', $event);
}
public function onUserAfterDelete(Event $event): void
{
[$user, $success, $msg] = array_values($event->getArguments());
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
$event = new $className($eventName, $args);
} else {
throw new \InvalidArgumentException('The arguments must either be an event or an array');
}
$result = $dispatcher->dispatch($eventName, $event);
// @todo - There are still test cases where the result isn't defined, temporarily leave the isset check in place
return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
}
}
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Trigger the onBeforeRespond event.
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
* define() is used rather than "const" to not error for PHP 5.2 and lower
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(__FILE__) . '/includes/app.php';
TypeError
|
---|
TypeError: array_map(): Argument #2 ($array) must be of type array, string given at /kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Utility/BlockedRequestHandler.php:682 at array_map() (/kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Utility/BlockedRequestHandler.php:682) at Akeeba\Plugin\System\AdminTools\Utility\BlockedRequestHandler->isSafeIP() (/kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Utility/BlockedRequestHandler.php:382) at Akeeba\Plugin\System\AdminTools\Utility\BlockedRequestHandler->logBlockedRequest() (/kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Utility/BlockedRequestHandler.php:124) at Akeeba\Plugin\System\AdminTools\Utility\BlockedRequestHandler->logWithoutBlocking() (/kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Feature/Shield404.php:114) at Akeeba\Plugin\System\AdminTools\Feature\Shield404->onError() (/kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Extension/AdminTools.php:754) at Akeeba\Plugin\System\AdminTools\Extension\AdminTools->runVoidFeature() (/kunden/273043_1070/webseiten/webfeuer.at/plugins/system/admintools/src/Extension/AdminTools.php:302) at Akeeba\Plugin\System\AdminTools\Extension\AdminTools->onError() (/kunden/273043_1070/webseiten/webfeuer.at/libraries/vendor/joomla/event/src/Dispatcher.php:486) at Joomla\Event\Dispatcher->dispatch() (/kunden/273043_1070/webseiten/webfeuer.at/libraries/src/Application/EventAware.php:111) at Joomla\CMS\Application\WebApplication->triggerEvent() (/kunden/273043_1070/webseiten/webfeuer.at/libraries/src/Application/CMSApplication.php:320) at Joomla\CMS\Application\CMSApplication->execute() (/kunden/273043_1070/webseiten/webfeuer.at/includes/app.php:61) at require_once('/kunden/273043_1070/webseiten/webfeuer.at/includes/app.php') (/kunden/273043_1070/webseiten/webfeuer.at/index.php:32) |