com web/master: Fixed wrong variable initialization bug.: entry/user-notes-vote.php
| From: | Sherif Ramadan | Date: | Tue, 25 Dec 2012 04:28:12 +0000 |
| Subject: | com web/master: Fixed wrong variable initialization bug.: entry/user-notes-vote.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15142@lists.php.net to get a copy of this message | ||
Commit: e0f6118a27b85395a575bb836fcce551b2575d15
Author: Sherif Ramadan <googleguy@php.net> Mon, 24 Dec 2012 23:28:12 -0500
Parents: 22207d5f2c253861868b06e97a87658a2e1dc855
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=e0f6118a27b85395a575bb836fcce551b2575d15
Log:
Fixed wrong variable initialization bug.
Changed paths:
M entry/user-notes-vote.php
Diff:
diff --git a/entry/user-notes-vote.php b/entry/user-notes-vote.php
index 8ff49f1..04cfe54 100644
--- a/entry/user-notes-vote.php
+++ b/entry/user-notes-vote.php
@@ -62,7 +62,7 @@ function vote_validate_request(PDO $dbh) {
$hostip = sprintf("%u", ip2long($_SERVER['REMOTE_ADDR']));
} else {
// If the IP can't be validated use a non routable IP for loose validation (i.e. IPv6
and clients that couldn't send back proper IPs)
- $ip = 0;
+ $hostip = 0;
}