Commit beadd36
committed
fix: resolve code review findings
- Fix broken SQL in syslog_get_alert_sql: remove $uniqueID concatenation
after ? placeholder (was producing ?42 instead of using bind param)
- Fix XSS in setup.php: use json_encode with JSON_HEX_* flags for JS
string context instead of __esc (HTML escaper)
- Fix duplicate global $syslogdb_default in syslog_process_alerts
- Parameterize retention DELETE queries in syslog_delete_records
- Parameterize count query in syslog_remove_items
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent 694fea1 commit beadd36
2 files changed
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
1176 | 1175 | | |
1177 | 1176 | | |
1178 | 1177 | | |
| |||
1736 | 1735 | | |
1737 | 1736 | | |
1738 | 1737 | | |
1739 | | - | |
| 1738 | + | |
1740 | 1739 | | |
1741 | 1740 | | |
1742 | 1741 | | |
1743 | 1742 | | |
1744 | 1743 | | |
1745 | 1744 | | |
1746 | 1745 | | |
1747 | | - | |
| 1746 | + | |
1748 | 1747 | | |
1749 | 1748 | | |
1750 | 1749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
1660 | 1660 | | |
1661 | 1661 | | |
1662 | | - | |
| 1662 | + | |
1663 | 1663 | | |
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
1668 | 1668 | | |
1669 | | - | |
| 1669 | + | |
1670 | 1670 | | |
1671 | 1671 | | |
1672 | 1672 | | |
| |||
0 commit comments