[Pywikipedia-l] SVN: [6223] trunk/pywikipedia/archivebot.py

misza13 at svn.wikimedia.org misza13 at svn.wikimedia.org
Mon Jan 5 17:41:08 UTC 2009


Revision: 6223
Author:   misza13
Date:     2009-01-05 17:41:08 +0000 (Mon, 05 Jan 2009)

Log Message:
-----------
fixed bug: underscore in archive name raises ArchiveSecurityError

Modified Paths:
--------------
    trunk/pywikipedia/archivebot.py

Modified: trunk/pywikipedia/archivebot.py
===================================================================
--- trunk/pywikipedia/archivebot.py	2009-01-05 17:27:25 UTC (rev 6222)
+++ trunk/pywikipedia/archivebot.py	2009-01-05 17:41:08 UTC (rev 6223)
@@ -402,6 +402,9 @@
         if mode == 0 or not self.get('algo',''):
             raise MissingConfigError
 
+        #Last minute fix:
+        self.set('archive', self.get('archive').replace('_',' '), True)
+
     def feedArchive(self, archive, thread, maxArchiveSize, vars=None):
         """Feed the thread to one of the archives.
         If it doesn't exist yet, create it.





More information about the Pywikipedia-l mailing list