commit | c16b4f4164a4a26c48b823caf086a9777dc75beb | [log] [tgz] |
---|---|---|
author | Bogdan Lysenko <lysenkobv@gmail.com> | Thu Oct 11 11:41:01 2012 +0300 |
committer | Bogdan Lysenko <lysenkobv@gmail.com> | Thu Oct 11 11:41:01 2012 +0300 |
tree | 389135eb9998f0cd1cad039d97eff97a8aa968e9 | |
parent | c6f9a5da098ed9e27d88b7c271c4e1ba76fa79d6 [diff] |
Update system/libraries/Encrypt.php
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php index dbe16b0..73ab8ca 100644 --- a/system/libraries/Encrypt.php +++ b/system/libraries/Encrypt.php
@@ -165,7 +165,7 @@ */ public function decode($string, $key = '') { - if (preg_match('/[^a-zA-Z0-9\/\+=]/', $string) || base64_encode(base64_decode($string)) !== $string) + if (preg_match('/[^a-zA-Z0-9\/\+=]/', $string) OR base64_encode(base64_decode($string)) !== $string) { return FALSE; }