Bug 617716 - add privacy policy link to footer. And work around dev box problem with IPv6.
git-svn-id: svn://10.0.0.236/trunk@261644 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -130,7 +130,12 @@ if (!$action) {
|
||||
}
|
||||
elsif ($action eq "submit") {
|
||||
# Check the poster's IP against some blacklists
|
||||
$rbl->lookup($::ENV{REMOTE_ADDR});
|
||||
my $remote_addr = $::ENV{REMOTE_ADDR};
|
||||
|
||||
# RBL can't cope with IPv6 and this interacts badly with my dev box...
|
||||
$remote_addr = "127.0.0.1" if $remote_addr eq "::1";
|
||||
|
||||
$rbl->lookup($remote_addr);
|
||||
my %rbl_results = $rbl->txt_hash();
|
||||
if (scalar(keys %rbl_results) > 0) {
|
||||
$vars->{'rbl_results'} = \%rbl_results;
|
||||
|
||||
@@ -23,5 +23,9 @@
|
||||
# The Initial Developer wrote this software to the Glory of God.
|
||||
# ***** END LICENSE BLOCK ***** %]
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
<center><a href="http://www.mozilla.org/about/policies/privacy-policy.html">Privacy Policy</a></center>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user