]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/comments.pm
Merge remote-tracking branch 'schmonz/fancypodcast'
[ikiwiki.git] / IkiWiki / Plugin / comments.pm
index 151e839d0bb826a7bda242a9d94b882e79e7cb17..1ef79a27a958a77dde14f75dd34b1b5c75dd5763 100644 (file)
@@ -460,10 +460,7 @@ sub editcomment ($$) {
                $content .= " nickname=\"$nickname\"\n";
        }
        elsif (defined $session->remote_addr()) {
-               my $ip = $session->remote_addr();
-               if ($ip =~ m/^([.0-9]+)$/) {
-                       $content .= " ip=\"$1\"\n";
-               }
+               $content .= " ip=\"".$session->remote_addr()."\"\n";
        }
 
        if ($config{comments_allowauthor}) {