[Python-checkins] r88978 - tracker/instances/jython/detectors/no_texthtml.py

martin.v.loewis python-checkins at python.org
Fri Jun 15 13:02:57 CEST 2012


Author: martin.v.loewis
Date: Fri Jun 15 13:02:57 2012
New Revision: 88978

Log:
Add text/x-html and html to black list.


Modified:
   tracker/instances/jython/detectors/no_texthtml.py

Modified: tracker/instances/jython/detectors/no_texthtml.py
==============================================================================
--- tracker/instances/jython/detectors/no_texthtml.py	(original)
+++ tracker/instances/jython/detectors/no_texthtml.py	Fri Jun 15 13:02:57 2012
@@ -1,8 +1,8 @@
 
 def audit_html_files(db, cl, nodeid, newvalues):
-    if newvalues.has_key('type') and newvalues['type'] == 'text/html':
+    if newvalues.has_key('type') and newvalues['type'] in ('text/html', 'html', 'text/x-html'):
         newvalues['type'] = 'text/plain'
-    
+
 
 def init(db):
     db.file.audit('set', audit_html_files)


More information about the Python-checkins mailing list