summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrajatsharma94 <rajat.shrma94@gmail.com>2015-07-23 16:29:50 +0200
committerrajatsharma94 <rajat.shrma94@gmail.com>2015-07-23 16:29:50 +0200
commitd41ec5c4e225aaa766a8b9e2856a180cf85cb343 (patch)
tree6f99a5183c92289c72c37039b782e8e4af694dba
parentd2f63a1803503a09b2d92d4aedd793636d470c7b (diff)
Update path_helper.php
-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 dbe090058..b8640d2e4 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) || (!filter_var($ip, 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');
}