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

Re: [php-weathermap] Hower graph in 0.96a are not shown anymore



Niels Baggesen wrote:
> On Thu, Jun 18, 2009 at 09:22:45AM +0100, Howard Jones wrote:
>   
>> The link names are used for HTML CSS IDs in the clickable map, so /
>> might be a bad character there... I will make a fix for a future
>> version, but renaming the links to use - instead of / will probably fix it.
>>     
>
> Oops, that is one that I forgot to report when I upgraded to 0.96a ...
>
> Yes, things go haywire when you have a node with a / in the name
> (such as naming a cisco port gi0/1). I cannot exactly remember where
> it hit, but I think it also involved the name being put into /.../
> to be used in a preg_match ... I had to rename these to gi0:1
>   
Ah - that one is fixed recently. I changed the preg_match for a strstr
in HTML_ImageMap.class.php, where it fetches the subsets of all areas.
But it looks like there needs to be some name-mangling done for the HTML
ids too.

Copyright 1994-2005, by Howard Jones. howie@thingy.com