diff --git a/public_html/rewrite.php b/public_html/rewrite.php index 8fd6814..b6c65d5 100644 --- a/public_html/rewrite.php +++ b/public_html/rewrite.php @@ -14,6 +14,18 @@ $_APP = true; require("includes/base.php"); +if(strtolower($_SERVER["REQUEST_METHOD"]) == "post") +{ + try + { + CSRF::VerifyToken(); + } + catch (CsrfException $e) + { + die(); + } +} + $router = new CPHPRouter(); $router->ignore_query = true; $router->allow_slash = true;