1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-20 11:16:36 +02:00

routing: check if created handler is a subclass of Handler

This commit is contained in:
Andrew Dolgov 2012-08-16 15:43:52 +04:00
parent 501ed09a26
commit 143d1b31a8

View File

@ -136,7 +136,7 @@
if (class_exists($op)) {
$handler = new $op($link, $_REQUEST);
if ($handler) {
if ($handler && is_subclass_of($handler, 'Handler')) {
if (validate_csrf($csrf_token) || $handler->csrf_ignore($method)) {
if ($handler->before($method)) {
if ($method && method_exists($handler, $method)) {