Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /branches/2.6/cgi-bin/yabb2/Sources/IPLookup.pm [r1450] .. [r1451] Maximize Restore

  Switch to side-by-side view

--- a/branches/2.6/cgi-bin/yabb2/Sources/IPLookup.pm
+++ b/branches/2.6/cgi-bin/yabb2/Sources/IPLookup.pm
@@ -15,7 +15,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.6.0';
 
-$iplookuppmver = 'YaBB 2.6.0 $Revision: 1416 $';
+$iplookuppmver = 'YaBB 2.6.0 $Revision: 1451 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 if ( !$ipLookup || !$INFO{'ip'} || ( !$iamadmin && !$iamgmod && !$iamfmod ) ) {
@@ -33,23 +33,23 @@
       || fatal_error( 'cannot_open', "$vardir/iplookup.urls", 1 );
     @iplookup_urls = <IPLOOKUP>;
     fclose(IPLOOKUP);
-	chomp @iplookup_urls;
+    chomp @iplookup_urls;
 
     foreach my $i (@iplookup_urls) {
         my ( $iplookup_name, $iplookup_url ) = split /\|/xsm, $i;
         $iplookup_name = Censor($iplookup_name);
         $iplookup_url =~ s/{ip}/$ip/gxsm;
-		$iplookup_url =~ s/^\s+//gsm;
-		$iplookup_url =~ s/\s+$//gsm;
-		$iplookup_url =~ s/\r//gxsm;
-		$iplookup_url =~ s/\n//gxsm;
-		$iplookup_url =~ s/\t//gsm;
-		if ( $iplookup_url !~ /&(.*amp;)/gsm ) {
-			$iplookup_url =~ s/&/&amp;/gxsm;
-		}
+        $iplookup_url =~ s/^\s+//gsm;
+        $iplookup_url =~ s/\s+$//gsm;
+        $iplookup_url =~ s/\r//gxsm;
+        $iplookup_url =~ s/\n//gxsm;
+        $iplookup_url =~ s/\t//gsm;
+        if ( $iplookup_url !~ /&(.*amp;)/gsm ) {
+            $iplookup_url =~ s/&/&amp;/gxsm;
+        }
         if ( $iplookup_url !~ /http(s|):\/\//xsm ) {
             $iplookup_url = qq~http://$iplookup_url~;
-		}
+        }
 
         $lookuplink .=
           qq~<a href="$iplookup_url" target="_blank">$iplookup_name</a><br />~;