commit | cd9797a210089ea65b4d4b16db051d06188b66ed | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Jun 28 14:03:48 2013 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Fri Jun 28 14:03:48 2013 +0300 |
tree | 2239f27e8bfc79857d860c6e14c4dc24817c5b34 | |
parent | b9e090e5f4ddb72aef6cf7f36cb17b842885d53e [diff] [blame] |
Fix #2498
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 1ed5084..40ba012 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php
@@ -1405,7 +1405,7 @@ */ public function valid_base64($str) { - return ! preg_match('/[^a-zA-Z0-9\/\+=]/', $str); + return (base64_encode(base64_decode($str)) === $str); } // --------------------------------------------------------------------