php-snmptraps icon indicating copy to clipboard operation
php-snmptraps copied to clipboard

Setting Hosts filter for User

Open jniven opened this issue 4 years ago • 1 comments

I was trying to create a user that would only see alerts from certain hostnames, however, no matter was was typed into the hostnames areas, the resultant was the word "hostnames" and no alerts where shown when user logged in.

I found that changing line 92 of item-submit.php to

$hostnames[] = str_replace("hostnames-", "", $_POST[$k]);

instead of

$hostnames[] = str_replace("hostnames-", "", $k);

populated the hostnames correctly and the filter now works.

jniven avatar Feb 15 '21 07:02 jniven

pository ! . excellent finding ... thanks

dsdwn avatar Feb 22 '25 20:02 dsdwn