diff options
author | rajatsharma94 <rajat.shrma94@gmail.com> | 2015-07-23 16:32:13 +0200 |
---|---|---|
committer | rajatsharma94 <rajat.shrma94@gmail.com> | 2015-07-23 16:32:13 +0200 |
commit | 591166310919d1f46facf9e6b829d4dcf399bab6 (patch) | |
tree | a758aa3758cc49c0bd7f24ecd6106817ec548512 /system/helpers/path_helper.php | |
parent | d41ec5c4e225aaa766a8b9e2856a180cf85cb343 (diff) |
Security check updated.
All security check conditions are modified according to CI styleguide.
Diffstat (limited to 'system/helpers/path_helper.php')
-rw-r--r-- | system/helpers/path_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/path_helper.php b/system/helpers/path_helper.php index b8640d2e4..3e5369195 100644 --- a/system/helpers/path_helper.php +++ b/system/helpers/path_helper.php @@ -61,7 +61,7 @@ if ( ! function_exists('set_realpath')) function set_realpath($path, $check_existance = FALSE) { // Security check to make sure the path is NOT a URL. No remote file inclusion! - if (preg_match('#^(http:\/\/|https:\/\/|www\.|ftp)#i', $path) OR ( ! filter_var($path, FILTER_VALIDATE_IP) === false)) + if (preg_match('#^(http:\/\/|https:\/\/|www\.|ftp)#i', $path) OR ( ! filter_var($path, FILTER_VALIDATE_IP) === FALSE)) { show_error('The path you submitted must be a local server path, not a URL'); } |