commit | cc9363541a461fbf52c9892d35d1183a379253e3 | [log] [tgz] |
---|---|---|
author | rich <r.brooks@freerateupdate.com> | Wed Sep 09 15:52:26 2015 -0400 |
committer | Andrey Andreev <narf@devilix.net> | Thu Sep 10 13:09:23 2015 +0300 |
tree | 10512d3d7c05e5ece16df8b3ab11da6ecddc8d0c | |
parent | 700619cebf75c4e4fcda6a2d7bea1afb84a029e4 [diff] [blame] |
Change form validation library to allow the pipe character within square brackets
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index d9ecc45..af90316 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -211,7 +211,7 @@ return $this; } - $rules = explode('|', $rules); + $rules = preg_split('/\|(?![^\[]*\])/', $rules); } // If the field label wasn't passed we use the field name