com web/bugs: IPV6 support: include/functions.php
| From: | Rasmus Lerdorf | Date: | Sat, 21 Jul 2018 10:26:53 +0000 |
| Subject: | com web/bugs: IPV6 support: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27149@lists.php.net to get a copy of this message | ||
Commit: 9e2320626559caacef641dd4bedf9450650aeab2
Author: Rasmus Lerdorf <rasmus@php.net> Sat, 21 Jul 2018 06:26:53 -0400
Parents: 196bfff9ba2f35e3b37665f430ea2ba1edf5e7f8
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9e2320626559caacef641dd4bedf9450650aeab2
Log:
IPV6 support
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 378a7ed..36d8648 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1621,7 +1621,7 @@ function bugs_add_comment($bug_id, $from, $from_name, $comment, $type =
'comment
return $dbh->prepare("
INSERT INTO bugdb_comments (bug, email, reporter_name, comment, comment_type, ts, visitor_ip)
- VALUES (?, ?, ?, ?, ?, NOW(), INET_ATON(?))
+ VALUES (?, ?, ?, ?, ?, NOW(), INET6_ATON(?))
")->execute(array(
$bug_id, $from, $from_name, $comment, $type,
(!empty($_SERVER['REMOTE_ADDR'])?$_SERVER['REMOTE_ADDR']:'127.0.0.1')
));