summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Encrypt.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php
index 6d0735a09..aabf90d08 100644
--- a/system/libraries/Encrypt.php
+++ b/system/libraries/Encrypt.php
@@ -141,9 +141,7 @@ class CI_Encrypt {
{
$key = $this->get_key($key);
- $this->CI->load->library('validation');
-
- if ($this->CI->validation->valid_base64($string) === FALSE)
+ if ( ! preg_match('/[^a-zA-Z0-9\/\+=]/', $string))
{
return FALSE;
}