summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorrajatsharma94 <rajat.shrma94@gmail.com>2015-07-23 17:01:05 +0200
committerrajatsharma94 <rajat.shrma94@gmail.com>2015-07-23 17:01:05 +0200
commit08c1a111916a1740e7c33f11ed7097832e1b97df (patch)
treeba5f583a4ab8fd2057410e9856412acb79394a1a /system/helpers
parent591166310919d1f46facf9e6b829d4dcf399bab6 (diff)
Update path_helper.php
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/path_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/path_helper.php b/system/helpers/path_helper.php
index 3e5369195..c96d0b8b3 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) === $path )
{
show_error('The path you submitted must be a local server path, not a URL');
}