mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:35:56 +00:00
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
This commit is contained in:
@@ -98,10 +98,13 @@
|
|||||||
if ($override) {
|
if ($override) {
|
||||||
$handler = $override;
|
$handler = $override;
|
||||||
} else {
|
} else {
|
||||||
$handler = new $op($_REQUEST);
|
$reflection = new ReflectionClass($op);
|
||||||
|
$handler = $reflection->newInstanceWithoutConstructor();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($handler && implements_interface($handler, 'IHandler')) {
|
if ($handler && implements_interface($handler, 'IHandler')) {
|
||||||
|
$handler->__construct($_REQUEST);
|
||||||
|
|
||||||
if (validate_csrf($csrf_token) || $handler->csrf_ignore($method)) {
|
if (validate_csrf($csrf_token) || $handler->csrf_ignore($method)) {
|
||||||
if ($handler->before($method)) {
|
if ($handler->before($method)) {
|
||||||
if ($method && method_exists($handler, $method)) {
|
if ($method && method_exists($handler, $method)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user