m3 Security Fixes

This commit is contained in:
Mark Gregory
2026-09-16 17:38:23 +01:00
parent 3407626e92
commit 746fcaa8b1
6 changed files with 25 additions and 263 deletions
@@ -248,6 +248,9 @@ class M3Controller extends Controller
$this->insertToICM666M2($Other, $commentData);
}
break;
default:
break;
}
}
}
@@ -526,11 +529,23 @@ class M3Controller extends Controller
}
}
public function show($id) {}
public function show($id)
{
// This resource endpoint is intentionally unsupported.
}
public function edit($id) {}
public function edit($id)
{
// This resource endpoint is intentionally unsupported.
}
public function update(Request $request, $id) {}
public function update(Request $request, $id)
{
// This resource endpoint is intentionally unsupported.
}
public function destroy($id) {}
public function destroy($id)
{
// This resource endpoint is intentionally unsupported.
}
}
@@ -108,7 +108,7 @@ class TwoShipAPIs extends Controller
curl_setopt($ch, CURLOPT_URL, $ShipOnHoldOrder_url);
curl_setopt($ch, CURLOPT_VERBOSE, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
// When CURLOPT_SSL_VERIFYPEER is enabled (value=1), and the verification fails to prove that the certificate is authentic, the connection fails.
// When the option is zero, the peer certificate verification succeeds regardless.