update descartes

This commit is contained in:
osaajani 2020-01-17 01:12:46 +01:00
parent 54e4f365e5
commit 4efccf4c2f
2 changed files with 7 additions and 4 deletions

View file

@ -198,11 +198,14 @@
default :
$prefix_method = 'get_';
}
//If we dont match prefix with request method, return error
if (mb_substr($method, 0, mb_strlen($prefix_method)) != $prefix_method)
{
return false;
}
}
$prefix_method = $prefix_method ?? '';
$method = $prefix_method . $method;
if (!method_exists($controller, $method))
{
return false;