From 3204f1f9c5dc0fe687e824fa4ff1816484b8a18f Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Sun, 21 Sep 2008 19:06:53 +0000 Subject: removed a call to the validation class, as it's overkill for a simple preg_match --- system/libraries/Encrypt.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'system/libraries') 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; } -- cgit v1.2.3-24-g4f1b