CVS: tmda-cgi tmda-cgi.py,1.37,1.38

Gre7g Luterman <[email protected]>
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv26784

Modified Files:
	tmda-cgi.py 
Log Message:
Squashed a stupid bug that messes up use under webservers that don't provide
QUERY_STRING if it is blank.


Index: tmda-cgi.py
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/tmda-cgi.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- tmda-cgi.py	26 May 2003 20:14:14 -0000	1.37
+++ tmda-cgi.py	16 Jun 2003 17:43:18 -0000	1.38
@@ -109,7 +109,7 @@
 # First visit to any page?
 if not Form.keys():
   # Release an e-mail by URL?
-  if os.environ["QUERY_STRING"]:
+  if os.environ.has_key("QUERY_STRING") and os.environ["QUERY_STRING"]:
     import Release
     Release.Release(os.environ["QUERY_STRING"])
     sys.exit()

_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.