mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-11-29 18:11:26 +01:00
routing: check if created handler is a subclass of Handler
This commit is contained in:
parent
501ed09a26
commit
143d1b31a8
@ -136,7 +136,7 @@
|
|||||||
if (class_exists($op)) {
|
if (class_exists($op)) {
|
||||||
$handler = new $op($link, $_REQUEST);
|
$handler = new $op($link, $_REQUEST);
|
||||||
|
|
||||||
if ($handler) {
|
if ($handler && is_subclass_of($handler, 'Handler')) {
|
||||||
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)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user