Menu

#13 cookie debug append to text/plain document bombs

next_release
open
index.cgi (3)
5
2006-03-27
2006-03-27
JT Moree
No

I have a few screens returning documents with content
type set to text/plain. When the cookie debug flag is
set index.cgi tries to output the cookie information
using setFocus. HTMLObject craps out with BIG error
like thus: (abbreviated)

<head><title>Error: setFocus</title></head>
<body . . .>
<h1>HTMLObject</h1>
<h1>Error: &nbsp;<b>1006</b> Occurred!</h1>
Message: &nbsp;Invalid Section used when Content-Type
not equal to "text/html"
<br />
Focus = "$focus" is invalid when Content-Type =
$self->{contentTypeString}" is used!

I suggest that the cookie debug code check the content
type and do NOTHING if it is NOT set to text/html.

Discussion


Log in to post a comment.