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
@@ -22,8 +22,8 @@ Sentinel Doc Archive
<select class="form-select" id="WHDDA" aria-label="WHDD" tabindex="-1" disabled>
@foreach ($IC670M as $key => $IC670MR)
@php $currentWHDDA = trim($IC670MR->WDCO).trim($IC670MR->WDPL).trim($IC670MR->WDWHS); @endphp
<option value="{{ $currentWHDDA }}"
data-comp="{{ trim($IC670MR->WDCO) }}" data-pl="{{ trim($IC670MR->WDPL) }}" data-wh="{{ trim($IC670MR->WDWHS) }}"
<option value="{{ $currentWHDDA }}"
data-comp="{{ trim($IC670MR->WDCO) }}" data-pl="{{ trim($IC670MR->WDPL) }}" data-wh="{{ trim($IC670MR->WDWHS) }}"
{{ ($WHDDA!='' && $WHDDA==$currentWHDDA) ? "selected" : "" }}>
{{ trim(Str::upper($IC670MR->WDWNAM)) }}
</option>
@@ -48,7 +48,7 @@ Sentinel Doc Archive
</div>
</form>
@if($aggmsg!="")
<center><b> {{ $aggmsg }}
<center><b> {{ $aggmsg }}
(
@foreach($ICM688M1 as $key => $ICM688M1R)
<a href="M3GetPDFFromCache?MACPKR={{$ICM688M1R->A4MACPKR}}&COMPANY={{$COMPANY}}&PLANT={{$PLANT}}&WHS={{$WHS}}">{{$ICM688M1R->A4MACPKR}}</a>
@@ -57,9 +57,9 @@ Sentinel Doc Archive
@endif
@if(count($trackingno)>0)
@foreach($trackingno as $key => $val)
@if(trim($carrier[$key])=="UPSG")
@if(trim($carrier[$key])=="UPSG")
<center><b> UPSG <a href=https://www.ups.com/track?loc=en_US&tracknum={{$val}}>{{$val}}</a> </b></center>
@elseif(trim($carrier[$key])=="FEDG" || trim($carrier[$key])=="FXFE")
@elseif(trim($carrier[$key])=="FEDG" || trim($carrier[$key])=="FXFE")
<center><b> Fedex <a href=https://www.fedex.com/fedextrack/?trknbr={{$val}}>{{$val}}</a> </b></center>
@endif
@endforeach
@@ -78,7 +78,7 @@ Sentinel Doc Archive
</div>
</div>
</div>
</div>
@endsection
@@ -86,7 +86,7 @@ Sentinel Doc Archive
<script>
$(document).ready(function() {
// Update Division/WH/Plant on Warehouse change
// Update Division/WH/Plant on Warehouse change
$(document).on('change select','#WHDDA',function(){
$("#COMPANY").val($(this).find("option:selected").data("comp"));
$("#PLANT").val($(this).find("option:selected").data("pl"));