summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-06 22:56:36 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-06 22:56:36 +0200
commit62875bc789b60d95aa73fddda87d69fc88c66558 (patch)
treecb7032b975d6d7ce5f00d3db285b8f2338901556 /system
parent296ab9a06e3c648de56861ad67581236a6dae71a (diff)
parent3dfa14b3831c6f22acdca3d3ae8f0cb48e66b782 (diff)
Merge pull request #1435 from jjaffeux/valid-ipv6
IPv6 support for CI_Input::valid_ip()
Diffstat (limited to 'system')
-rwxr-xr-xsystem/core/Input.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 73f46ba6a..b986c4973 100755
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -383,7 +383,7 @@ class CI_Input {
*/
public function valid_ip($ip)
{
- return (bool) filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
+ return (bool) filter_var($ip, FILTER_VALIDATE_IP);
}
// --------------------------------------------------------------------