changeset 118:139cb901b81c

attachment unzipper: only log the file name, not the absolute path imported from: moin--main--1.5--patch-120
author Thomas Waldmann <tw@waldmann-edv.de>
date Tue, 18 Oct 2005 00:04:22 +0000
parents 4775d5ff5f40
children 0c6ef399308f
files MoinMoin/action/AttachFile.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Mon Oct 17 23:49:48 2005 +0000
+++ b/MoinMoin/action/AttachFile.py	Tue Oct 18 00:04:22 2005 +0000
@@ -698,7 +698,7 @@
                                 else:
                                     valid_name = True
                                     os.chmod(new_file, 0666 & config.umask)
-                                    _addLogEntry(request, 'ATTNEW', pagename, new_file)
+                                    _addLogEntry(request, 'ATTNEW', pagename, name)
 
                 if valid_name:
                     msg=_("Attachment '%(filename)s' unzipped.") % {'filename': filename}