Description

Sometimes, for me editing from the local host without dots in it, the "last edited by" displays the hostname truncated.

Example

It displays: "EditText of this page (last edited 2004-02-27 12:19:55 by johanne)"

Details

MoinMoin Version

1.2--patch-251

OS and Version

Debian/sid kernel 2.6.2

Python Version

Python 2.3.3

Server Setup and Version

modpy 2.7

Patch

--- orig/MoinMoin/logfile/editlog.py
+++ mod/MoinMoin/logfile/editlog.py
@@ -49,6 +49,8 @@
             return '<span title="%s">%s</span>' % (wikiutil.escape(self.hostname), editor.link_to(request))
         elif kind == 'ip':
             idx = editor.find('.')
+            if idx==-1:
+                idx = len(editor)
             return '<span title="%s">%s</span>' % (wikiutil.escape("%s=%s" % (self.addr,editor)), wikiutil.escape(editor[:idx]))
         else:
             return '<span title="%s">%s</span>' % (wikiutil.escape(self.hostname), wikiutil.escape(editor))


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/HostNameTruncated (last edited 2007-10-29 19:13:05 by localhost)