From: Andrew Dolgov Date: Thu, 16 Aug 2012 11:43:52 +0000 (+0400) Subject: routing: check if created handler is a subclass of Handler X-Git-Tag: 1.6.0~140 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=143d1b31a87c3c6de34dadb2215132eb8e122066;p=tt-rss.git routing: check if created handler is a subclass of Handler --- diff --git a/backend.php b/backend.php index b670451a..13568d16 100644 --- a/backend.php +++ b/backend.php @@ -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)) {