CVS: tmda/TMDA FilterParser.py,1.55,1.56
Gre7g Luterman <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda/TMDA
In directory sc8-pr-cvs1:/tmp/cvs-serv18518
Modified Files:
FilterParser.py
Log Message:
Armored MySQL methods against "'" hapenning in an e-mail address.
Index: FilterParser.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/FilterParser.py,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- FilterParser.py 8 May 2003 02:30:15 -0000 1.55
+++ FilterParser.py 10 May 2003 21:23:38 -0000 1.56
@@ -736,7 +736,7 @@
Test = ""
for Key in Keys:
if Test: Test += "OR "
- Test += "('%s' %s ADDRESS) " % (Key, Compare)
+ Test += "('%s' %s ADDRESS) " % (Key.replace("'", "\\'"), Compare)
# Perform the query
self.MySQL.query("SELECT * FROM %s WHERE %s LIMIT 1" % (Table, Test))
# Fetch the result
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs