diff options
author | rich <r.brooks@freerateupdate.com> | 2015-09-09 21:52:26 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-09-10 12:09:23 +0200 |
commit | cc9363541a461fbf52c9892d35d1183a379253e3 (patch) | |
tree | 10512d3d7c05e5ece16df8b3ab11da6ecddc8d0c /system/libraries/Form_validation.php | |
parent | 700619cebf75c4e4fcda6a2d7bea1afb84a029e4 (diff) |
Change form validation library to allow the pipe character within square brackets
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index d9ecc45f9..af90316a4 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -211,7 +211,7 @@ class CI_Form_validation { return $this; } - $rules = explode('|', $rules); + $rules = preg_split('/\|(?![^\[]*\])/', $rules); } // If the field label wasn't passed we use the field name |