summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorPascal Kriete <pascal@pascalkriete.com>2012-06-07 22:15:51 +0200
committerPascal Kriete <pascal@pascalkriete.com>2012-06-07 22:15:51 +0200
commit0a14913fe54e269e535c1f66f715823fa731c843 (patch)
treea8668d5d82d176edbd41be954359145dd59869e4 /system/libraries
parent044809b12475da3ff03e8e7113dd7f443e101481 (diff)
Adding IPv6 support to the Input and Form_validation libraries.
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Form_validation.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index a34809e05..9aab5da4b 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1079,11 +1079,12 @@ class CI_Form_validation {
*
* @access public
* @param string
+ * @param string "ipv4" or "ipv6" to validate a specific ip format
* @return string
*/
- public function valid_ip($ip)
+ public function valid_ip($ip, $which = '')
{
- return $this->CI->input->valid_ip($ip);
+ return $this->CI->input->valid_ip($ip, $which);
}
// --------------------------------------------------------------------