diff --git a/engine/license.txt b/engine/license.txt index 04e3c87f..6879d472 100755 --- a/engine/license.txt +++ b/engine/license.txt @@ -3,7 +3,7 @@ * * An open source PHP framework for web developers who like to break the rules * - * Version: 1.3.3042 + * Version: 1.3.3043 * * This product is released under the MIT License (MIT) * diff --git a/engine/tg_helpers/validation_helper.php b/engine/tg_helpers/validation_helper.php index 155e3784..27773215 100644 --- a/engine/tg_helpers/validation_helper.php +++ b/engine/tg_helpers/validation_helper.php @@ -6,8 +6,6 @@ class Validation_helper { public function set_rules($key, $label, $rules) { - $this->csrf_protect(); - if ((!isset($_POST[$key])) && (isset($_FILES[$key]))) { if (!isset($_POST[$key])) { @@ -89,6 +87,8 @@ private function run_validation_test($validation_data, $rules=null) { public function run($validation_array=null) { + $this->csrf_protect(); + if (isset($_SESSION['form_submission_errors'])) { unset($_SESSION['form_submission_errors']); } diff --git a/license.txt b/license.txt index 04e3c87f..6879d472 100755 --- a/license.txt +++ b/license.txt @@ -3,7 +3,7 @@ * * An open source PHP framework for web developers who like to break the rules * - * Version: 1.3.3042 + * Version: 1.3.3043 * * This product is released under the MIT License (MIT) *