Xymon Mailing List Archive search

GIF does not show up

2 messages in this thread

list Asif Iqbal · Tue, 5 Apr 2005 14:12:16 -0400 ·
Hi 

I am using Hobbit 4.0.1 and I defined HOBBITLOGO as

HOBBITLOGO="<IMG SRC=\"/hobbit/gifs/qwest_logo.gif\" width=\"185\" height=\"77\" alt=\"Qwest Spirit of Service&#8482;\">"

in my hobbitserver.cfg file

It shows up fine in every page, eg. bb.html, except for maint.pl file

The source file on a bb.html, it shows like this

<FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B><IMG SRC="/hobbit/gifs/qwest_logo.gif" width="185" height="77" alt="Qwest Spirit of Service&#8482;"></B></FONT> 

BUT, on maint.pl the same like looks like this:

<FONT FACE="Arial, Helvetica" SIZE="+1" COLOR="silver"><B><IMG SRC=/hobbit/gifs/qwest_logo.gif width=\185\ height=\77\ alt=Qwest Spirit of Service&#8482\></B></FONT>


As you can see the quotes are missing and just showing the escape
character (\) on the broken link

I am using the maint.pl which line 432 and 433 looks like this

432: #open (HOBBITDLIST, "bb ".$BBENV{'BBDISP'}." \"hobbitdboard ".$filter."\" |");
433:  open (HOBBITDLIST, "bb ".$BBENV{'BBDISP'}." hobbitdboard |");

Any suggestion how to fix it?

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi
list Henrik Størner · Tue, 5 Apr 2005 21:37:20 +0200 ·
quoted from Asif Iqbal
On Tue, Apr 05, 2005 at 02:12:16PM -0400, Asif Iqbal wrote:
I am using Hobbit 4.0.1 and I defined HOBBITLOGO as

HOBBITLOGO="<IMG SRC=\"/hobbit/gifs/qwest_logo.gif\" width=\"185\" height=\"77\" alt=\"Qwest Spirit of Service&#8482;\">"

in my hobbitserver.cfg file

It shows up fine in every page, eg. bb.html, except for maint.pl
file
It's the way maint.pl parses the hobbitserver.cfg file that is causing
problems.

The ugly but functional fix is to define HOBBITLOGO without any
escapes or quotes. Like this:

HOBBITLOGO="<IMG SRC=/hobbit/gifs/qwest_logo.gif width=185 height=77>"

which results in HTML that is not completely valid, but it works.


The real solution is to pack maint.pl inside a wrapper that sets up
the environment for it so that it does not need to process
hobbitserver.cfg by itself (and get it wrong). That's for the next
version.


Henrik