diff options
author | Andrey Andreev <narf@devilix.net> | 2017-01-06 12:05:57 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-01-06 12:05:57 +0100 |
commit | 383a5f650511437bb2b591bc74924b0b33687f09 (patch) | |
tree | 7517a75f943c15865b0a784988edd6700af295d3 /system/libraries | |
parent | a8092d42d6f8e08acbe077a565c0fc8da1cb9653 (diff) |
Fix FV's valid_mac() on PHP 5.4
Diffstat (limited to 'system/libraries')
-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 11f98f2a9..7be0b949d 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1294,7 +1294,7 @@ class CI_Form_validation { if ( ! is_php('5.5')) { // Most common format, with either dash or colon delimiters - if (preg_match('#\A[0-9a-f]{2}(?<delimiter>[:-])([0-9a-f]{2}((?P=delimiter)|\z)){5}#i', $mac)) + if (preg_match('#\A[0-9a-f]{2}(?<delimiter>[:-])([0-9a-f]{2}(?P=delimiter)){4}[0-9a-f]{2}\z#i', $mac)) { return TRUE; } |