gnats-prs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnatsweb/398: Missing </td> in Login page HTML


From: hogsett
Subject: gnatsweb/398: Missing </td> in Login page HTML
Date: Wed, 17 Jul 2002 13:57:28 -0400

>Number:         398
>Category:       gnatsweb
>Synopsis:       Missing </td> in Login page HTML
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 17 13:57:28 -0400 2002
>Originator:     Michael Hogsett
>Release:        gnatsweb 3.99.3
>Organization:

>Environment:
N/A
>Description:
In sub login_page the following line is missing "</td>" after
the ':'.

print "<tr><td><font color=\"red\"><b>User Name</b></font>:<td>",

This can cause problems if you wrap the output in another table
using the site callbacks.

>How-To-Repeat:
Using site_callback

create handlers for 'login_page_text' and 'page_end_html'
which wrap the output in a table.  

Such as : 

    if ( $cmd eq 'login_page_text' ) { 
        my     $txt = "<!-- site_callback $cmd @args -->\n";
        $txt = $txt . "<table border=0 cellpadding=0 cellspacing=0><tr><td 
bgcolor=black>\n";
        $txt = $txt . "<table border=0 cellpadding=4 cellspacing=2>\n";
        $txt = $txt . "<tr><td bgcolor=$site_banner_background>\n";
        $txt = $txt . "Login\n";
        $txt = $txt . "</td></tr><tr><td bgcolor=$light_background>\n";
        $txt = $txt . "<FONT COLOR=black>Log in as \&quot;view\&quot;\n";
        $txt = $txt . "with password \&quot;view\&quot; to view PRs</FONT>\n";
        return ( $txt );
    }


- and - 
    if ( $cmd eq 'page_end_html' ) { 
        my     $txt = "<!-- site_callback $cmd @args -->\n";
        #$txt = $txt . "<FONT COLOR=red>$cmd @args</FONT><BR>\n";
        if ( $args[0] ne "Login" ) {
            $txt = $txt . 
"</td></tr></table></td></tr></table></td></tr></table></body></html>\n";
        } else { 
            $txt = $txt . "</td></tr></table></td></tr></table>\n";
        }
        return ( $txt );
    }


 - then - 

view in Netscape 4.7


>Fix:
      print "<tr><td><font color=\"red\"><b>User Name</b></font>:</td><td>",
>Unformatted:
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]