mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-30 04:09:20 +09:00
The theme main.js files appended a search icon after any #filter/#filterd/#rfilter input whenever it existed in the DOM, even while it was hidden, leaving a stray icon on the page. Gate the decoration on the input being :visible, and defer it with setTimeout(0) so it runs after applySkin()/cactiReady() reveal #main and #navigation_right. The :visible check then skips only intentionally hidden filters, while ordinary filters -- including after AJAX refreshes -- still receive their icon, placeholder and autocomplete settings. Also make cacti_trusted_proxy_match() IP-family aware so an IPv4-mapped IPv6 address (::ffff:a.b.c.d) never matches a bare IPv4 proxy entry. Newer Symfony IpUtils releases normalize the mapped form inside checkIp(), which broke the native dependency test matrix; gating on IP family keeps the match deterministic. A coverage case keeps lib/client_address.php at 100%. Co-authored-by: TheWitness <copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>