weathermap 0.97c has a bug in editor.php

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
icethink
Posts: 5
Joined: Wed Feb 20, 2013 8:34 pm

weathermap 0.97c has a bug in editor.php

Post by icethink »

I found a bug in editor.php.It is on line number 794

Code: Select all

	case "delete_link":
		$map->ReadConfig($mapfile);

		$target = wm_editor_sanitize_name($_REQUEST['param']);
		$log = "delete link ".$target;

		if(isset($map->links[target])) {
		    unset($map->links[$target]);
		    
		    $map->WriteConfig($mapfile);
		}
		break;
($map->links[target])

When I click delete link, PHP throw a error. undefinded "target" ....

and I found that the code just like isset($map->links[target]) almost have this bug.
line number 727,760 also has this bug.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: weathermap 0.97c has a bug in editor.php

Post by Linegod »

--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weathermap 0.97c has a bug in editor.php

Post by Howie »

This is fixed in latest, but replace [target] with [$target] in each place.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest