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:
gerv%gerv.net
2010-12-09 20:36:28 +00:00
parent b62e9bbd87
commit bf0b126b33
2 changed files with 10 additions and 1 deletions

View File

@@ -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;

View File

@@ -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>