forked from pfsense/pfsense
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct codelq shaper input validation for firewall_shaper.php. Fixes…
… #13661 Ensure all bandwidth values are cast to int before applying arithmetic to the return value of get_bandwidth_typescale(). This alleviates failed validation when the bandwidth is blank. Two more validation errors are also corrected by only validating qlimit and tbrsize are positive integers if their input values are not empty strings. These are also modified to check for values < 1 rather than < 0 to agree with the validation that the value is positive, which does not include 0.
- Loading branch information
Reid Linnemann
committed
Nov 14, 2022
1 parent
d55227f
commit b197217
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters