[Nagios-devel] Invalid cgi DOM patch

Sven-Göran Bergh sgb at systemasis.com
Fri Dec 17 10:27:13 UTC 2010


Hi list,

attached is a small path for an inconsistency
in some of the CGI's DOM. Typical example:

<table><form><tr><td>...</td></tr></form></table>

is not valid. Instead it should be:

<form><table><tr><td>...</td></tr></table></form>
or
<table><tr><td><form>...</form></td></tr></table>

When loaded in its own window, frame or iframe all
shows up ok. However, when loaded in an existing
DOM, typically in a <div>-tag, some forms are lost
in some browsers (observed in FF3.x).

The patch is against release 3.2.3 and has been
tested in Chrome3, Chrome8, FF3.5, IE6, IE8 and
Opera10.

Affected CGIs are:
 - avail.cgi
 - config.cgi
 - histogram.cgi
 - trends.cgi

There are probably more bugs in there, but this
was my immediate itch. Please include or comment.

Thanks in adv
/S-G
______________________________________________

Sven-Göran Bergh, Systemasis AB

______________________________________________


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nagios.com/pipermail/nagios-devel/attachments/20101217/85648a93/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-3.2.3_cgi-DOM.patch
Type: application/octet-stream
Size: 13713 bytes
Desc: not available
URL: <http://lists.nagios.com/pipermail/nagios-devel/attachments/20101217/85648a93/attachment.obj>


More information about the Nagios-devel mailing list