summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorrich <r.brooks@freerateupdate.com>2015-09-09 21:52:26 +0200
committerrich <r.brooks@freerateupdate.com>2015-09-09 21:52:26 +0200
commit2b2962f1efbdf243b70688690de3f09f9564ad05 (patch)
treebf98b23990d9ae86736368122bca898da9c1f1a8 /system
parent3f67b256aa567ac96fc39f409c889670f1ce6325 (diff)
Change form validation library to allow the pipe character within square brackets
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Form_validation.php2
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