Log message for revision 96071:
  removed rant 
  

Changed:
  U   Zope/branches/2.11/lib/python/Products/PageTemplates/utils.py

-=-
Modified: Zope/branches/2.11/lib/python/Products/PageTemplates/utils.py
===================================================================
--- Zope/branches/2.11/lib/python/Products/PageTemplates/utils.py       
2009-02-04 11:04:49 UTC (rev 96070)
+++ Zope/branches/2.11/lib/python/Products/PageTemplates/utils.py       
2009-02-04 11:08:34 UTC (rev 96071)
@@ -20,14 +20,6 @@
 
 
 xml_preamble_reg = re.compile(r'^<\?xml.*?encoding="(.*?)".*?\?>', re.M)
-# This regular expression is defined extremely carelessly. It starts
-#  with a tag beginning with 'meta' and extends until an arbitrary
-#  'content-type' (maybe in a completely unrelated element).
-#  Tighten the expression a bit.
-#  Note that using a regular expression at all is unreliable as it does
-#  not know about e.g. HTML comments. A robust solution would need to
-#  use an HTML parser to locate the 'meta' tag.
-#http_equiv_reg = re.compile(r'(<meta.*?http\-equiv.*?content-type.*?>)', 
re.I|re.M|re.S)
 http_equiv_reg = 
re.compile(r'(<meta\s+[^>]*?http\-equiv[^>]*?content-type.*?>)', re.I|re.M|re.S)
 http_equiv_reg2 = re.compile(r'charset.*?=.*?(?P<charset>[\w\-]*)', 
re.I|re.M|re.S)
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to