-
-
Notifications
You must be signed in to change notification settings - Fork 427
Description
Describe the bug
A clear and concise description of what the bug is.
I use an external tool to link and search specific graphs, I do this by referencing graph_view.php with get variables to carry out the search. An example url is:
/cacti/graph_view.php?action=preview&external_id=191&rfilter=Gi1/0/12
This returns no matches, and the "Search" filter box is empty. If you then type in Gi1/0/12 into the Search filter box it works. (POST'd variable?)
There appears to be a bug in the parser for rfilter that uses get_request_var (lib/html_utility.php) called from graph_view.php Some work and some do not. So for example:
/cacti/graph_view.php?action=preview&external_id=191&rfilter=Gi1/0/1
WORKS
/cacti/graph_view.php?action=preview&external_id=191&rfilter=Gi1/0/10
DOES NOT
It appears to be when two digits or more are on the end of the gig int variable. I suspect this is due to the slashes being stripped/interpreted.
To Reproduce
Use a get/query to search for something that is known to exist using the Gi1/0/12 prefix or similar Cisco naming convention:
/cacti/graph_view.php?action=preview&external_id=191&rfilter=Gi1/0/12
Fails, whilst:
/cacti/graph_view.php?action=preview&external_id=191&rfilter=Gi1/0/1
Would succeed.
Expected behavior
Search would return values and Search box would show the get query.
Desktop (please complete the following information)
-
OS: Windows 10 enterprise
-
Browser Chrome (Also tested with Edge and firefox on different operating systems)
Additional context
Cacti version 1.2.10
Ubuntu 20.04.1