You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by nl...@apache.org on 2005/05/01 12:04:54 UTC

svn commit: r165478 - /httpd/mod_python/branches/3.2.0-experimental-publisher/lib/python/mod_python/publisher.py

Author: nlehuen
Date: Sun May  1 03:04:52 2005
New Revision: 165478

URL: http://svn.apache.org/viewcvs?rev=165478&view=rev
Log:
Modified the regular expression for the closing HTML tag : we want it to be the last thing in the content.

Modified:
    httpd/mod_python/branches/3.2.0-experimental-publisher/lib/python/mod_python/publisher.py

Modified: httpd/mod_python/branches/3.2.0-experimental-publisher/lib/python/mod_python/publisher.py
URL: http://svn.apache.org/viewcvs/httpd/mod_python/branches/3.2.0-experimental-publisher/lib/python/mod_python/publisher.py?rev=165478&r1=165477&r2=165478&view=diff
==============================================================================
--- httpd/mod_python/branches/3.2.0-experimental-publisher/lib/python/mod_python/publisher.py (original)
+++ httpd/mod_python/branches/3.2.0-experimental-publisher/lib/python/mod_python/publisher.py Sun May  1 03:04:52 2005
@@ -344,7 +344,7 @@
 
 # This regular expression is used to test for the presence of an HTML header
 # tag, written in upper or lower case.
-re_html = re.compile(r"</HTML",re.I)
+re_html = re.compile(r"</HTML\s*>\s*$",re.I)
 re_charset = re.compile(r"charset\s*=\s*([^\s;]+)",re.I);
 
 def publish_object(req, object):