summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-16 15:43:52 +0400
committerAndrew Dolgov <[email protected]>2012-08-16 15:43:52 +0400
commit143d1b31a87c3c6de34dadb2215132eb8e122066 (patch)
tree0afb99eca2a4b0b768ae952038aeb91ae20534ce /backend.php
parent501ed09a2646f2dbe3958c92f4c8a388ce981dbd (diff)
routing: check if created handler is a subclass of Handler
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index b670451a4..13568d165 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)) {