diff options
author | Louis Racicot <lracicot@phpcreation.com> | 2013-03-11 14:03:25 +0100 |
---|---|---|
committer | Louis Racicot <lracicot@phpcreation.com> | 2013-03-11 14:03:25 +0100 |
commit | 65b8f835e572cc6ff73fe07024ffaa537fee912e (patch) | |
tree | 88039271bee199d393050df75ff7bfa60a936e8c /system/libraries | |
parent | 025b6465c4baa7ba501b24df64672fd15f779a1a (diff) |
reorder rules in product name regex by importance
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Cart.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index 6e203a8c7..edc300bd7 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php @@ -51,7 +51,7 @@ class CI_Cart { * * @var string */ - public $product_name_rules = '\.\:\- \w'; + public $product_name_rules = '\w \-\.\:'; /** * only allow safe product names @@ -544,4 +544,4 @@ class CI_Cart { } /* End of file Cart.php */ -/* Location: ./system/libraries/Cart.php */ +/* Location: ./system/libraries/Cart.php */
\ No newline at end of file |