terrylinooo / shieldon

Web Application Firewall (WAF) for PHP.
https://shieldon.io
MIT License
838 stars 96 forks source link

Notice: Undefined offset: 100 on /report/operation/ of the Panel #60

Closed bplace closed 8 months ago

bplace commented 10 months ago

Hi,

I get a warning on the call to private function operationTemplateVarsOfStatistics when a $ruleInfo['reason'] is not predefined by getInfoDefault().

Simple patch is to add before $counter[$reason]++; (line 255)

$counter[$reason] = $counter[$reason] ?? 0;

Thank you for your work.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive for 14 since being marked as stale.