m3 Security Fixes

This commit is contained in:
Mark Gregory
2026-09-16 17:14:26 +01:00
parent 1602bdd72e
commit d68687f062
78 changed files with 1297 additions and 1228 deletions
@@ -33,36 +33,36 @@ class whsePerfDetailsController extends Controller
$all = "tempfile4 as (
select a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype, sum(dollarvalue) as dollarvalue, sum(weight) as weight, max(source) as source
from tempfile3
where not (a4shipvia1='OCEAN' or interco='interco') and source<>'A2'
from tempfile3
where not (a4shipvia1='OCEAN' or interco='interco') and source<>'A2'
group by a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype
)
select * from tempfile4 order by source";
$ltl = "tempfile4 as (
select a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype, sum(dollarvalue) as dollarvalue, sum(weight) as weight, max(source) as source
from tempfile3
where not (a4shipvia1='OCEAN' or interco='interco') and source<>'A2' and a4shiptype='LTL'
from tempfile3
where not (a4shipvia1='OCEAN' or interco='interco') and source<>'A2' and a4shiptype='LTL'
group by a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype
)
select * from tempfile4 order by source";
$parcel = "tempfile4 as (
select a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype, sum(dollarvalue) as dollarvalue, sum(weight) as weight, max(source) as source
from tempfile3
from tempfile3
where not (a4shipvia1='OCEAN' or interco='interco') and source<>'A2' and a4shiptype='SmallPack'
group by a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype
)
select * from tempfile4 order by source";
$io = "tempfile4 as (
select a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype, sum(dollarvalue) as dollarvalue, sum(weight) as weight, max(source) as source
from tempfile3
where (a4shipvia1='OCEAN' or interco='interco') and source<>'A2'
from tempfile3
where (a4shipvia1='OCEAN' or interco='interco') and source<>'A2'
group by a5macpkr, a4shshnm, a4shipvia1, interco, a4shiptype
)
select * from tempfile4 order by source";
switch ($for) {
case "a":
$stmt2=$all;