SF.net SVN: tmda: [2049] trunk/tmda-cgi/Release.py

[email protected] Mon, 02 Oct 2006 13:30:17 -0700
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Revision: 2049
          http://svn.sourceforge.net/tmda/?rev=2049&view=rev
Author:   lack
Date:     2006-10-02 13:30:11 -0700 (Mon, 02 Oct 2006)

Log Message:
-----------
Fixed URL release code for new pending queue.

Modified Paths:
--------------
    trunk/tmda-cgi/Release.py

Modified: trunk/tmda-cgi/Release.py
===================================================================
--- trunk/tmda-cgi/Release.py	2006-10-02 20:09:59 UTC (rev 2048)
+++ trunk/tmda-cgi/Release.py	2006-10-02 20:30:11 UTC (rev 2049)
@@ -82,9 +82,9 @@
       "locate pending e-mail", "", """Please check the link you followed and
 make sure that it is typed in exactly as it was sent to you.""")
 
-  MsgID = "%s.%s.msg" % (Timestamp, PID)
+  MsgID = "%s.%s" % (Timestamp, PID)
   # Check to make sure they're not trying to access anything other than email
-  if not re.compile("^\d+\.\d+\.msg$").search(MsgID):
+  if not re.compile("^\d+\.\d+$").search(MsgID):
     CgiUtil.TermError("<tt>%s.%s.%s</tt> is not a valid message ID." % \
       (Timestamp, PID, HMAC), "Program error / corrupted link.",
       "retrieve pending e-mail", "", """Please check the link you followed and


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.