'handle_opts.py' and 'subscribe.py' don't use HeadlessDoc...

Bug #265370 reported by Thomas Wouters
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Invalid
Medium
Barry Warsaw

Bug Description

The handle_opt.py and subscribe.py CGI scripts use HTMLFormatter.Document()
rather than HTMLFormatter.HeadlessDocument(), but use template files that
define entire HTML files. This results in broken HTML code being displayed,
even with the standard template files.

For instance, the standard subscribe page shows something like:

<HTML>
<HEAD>
</HEAD>
<BODY
<body>
<h1>List-Name Subscription results</h1>

(notice the broken BODY tag.)

[http://sourceforge.net/tracker/index.php?func=detail&aid=219807&group_id=103&atid=100103]

Tags: web-cgi
Revision history for this message
Thomas Wouters (thomas) wrote :

Submitted a patch to fix this: #102174

Revision history for this message
Barry Warsaw (barry) wrote :

Yes, it's a bug, but I'm postponing fixing it until 2.1. Changing the code
requires changes to the .html templates, but that complicates upgrading
because those templates are all duplicated in the lists/<listname>/
directories. Most browsers seem to cope, so fixing it isn't critical for
2.0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.