CVS: tmda-cgi ChangeLog,1.51,1.52 THANKS,1.19,1.20 Templates.py,1.2,1.3
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-serv23156 Modified Files: ChangeLog THANKS Templates.py Log Message: Submitting a form with a blank template threw an uncaught exception. Index: ChangeLog =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/ChangeLog,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- ChangeLog 7 Aug 2003 05:18:20 -0000 1.51 +++ ChangeLog 9 Aug 2003 22:04:17 -0000 1.52 @@ -1,3 +1,7 @@ +2003-08-09 Gre7g Luterman <[email protected]> + + * Submitting a form with a blank template threw an uncaught exception. + 2003-08-06 Gre7g Luterman <[email protected]> * Fixed a bug that broke virtual user installs if there are many users Index: THANKS =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/THANKS,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- THANKS 7 Aug 2003 05:18:20 -0000 1.19 +++ THANKS 9 Aug 2003 22:04:17 -0000 1.20 @@ -57,6 +57,8 @@ tags so they are not browser specific, adding in some neat little things that had been left out + * Harry Zink -- bug finding + Includes: --------- Index: Templates.py =================================================================== RCS file: /cvsroot/tmda/tmda-cgi/Templates.py,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Templates.py 4 May 2003 14:30:36 -0000 1.2 +++ Templates.py 9 Aug 2003 22:04:17 -0000 1.3 @@ -66,7 +66,10 @@ (PVars[("NoOverride", "MayEditTemplates")][0].lower() == "y"): try: # Make sure the list is properly formatted - FileContents = re.sub("\r\n", "\n", Form[BaseName].value) + try: + FileContents = re.sub("\r\n", "\n", Form[BaseName].value) + except KeyError: + FileContents = "" FileContents = re.sub("\n*$", "", FileContents) FileContents += "\n" _______________________________________ tmda-cvs mailing list http://tmda.net/lists/listinfo/tmda-cvs