public inbox for gnats-prs@sourceware.org
help / color / mirror / Atom feed
* gnatsweb/398: Missing </td> in Login page HTML
@ 2002-07-25 11:10 hogsett
  0 siblings, 0 replies; only message in thread
From: hogsett @ 2002-07-25 11:10 UTC (permalink / raw)
  To: pdm-gnats, gnats-prs, bug-gnats

>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'\x18\x13
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:
 

_______________________________________________
Gnats-prs mailing list
Gnats-prs@gnu.org
http://mail.gnu.org/mailman/listinfo/gnats-prs


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-25 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-25 11:10 gnatsweb/398: Missing </td> in Login page HTML hogsett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).