m3 Security Fixes
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user