Added third option to determine if regex needs to match or not match.

Also fixed a bug where errors were overwriting eachother
This commit is contained in:
Josh Sherman 2013-09-08 14:31:55 -04:00
parent 94a9e08661
commit ae188a82a6
3 changed files with 10 additions and 10 deletions

View file

@ -357,7 +357,7 @@ class Controller extends Object
}
// Validates the hash if applicable
if ($module->hash !== false)
if ($valid_request === true && $module->hash !== false)
{
if (isset($_REQUEST['security_hash']))
{
@ -386,7 +386,7 @@ class Controller extends Object
$valid_form_input = true;
if ($module->validate !== false)
if ($valid_request === true && $valid_security_hash === true && $module->validate !== false)
{
$validation_errors = $module->__validate();