Skip to content

Commit

Permalink
Soap_model: call autoload.php to have random_bytes (kalkun-sms#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzap authored Feb 11, 2022
1 parent 3d19923 commit 47f4b28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/plugins/soap/models/Soap_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function getRemoteAccess($option = NULL, $limit = NULL, $offset = NULL)

function addRemoteAccess()
{
// autoload to get paragonie/random_compat (to have random_bytes when using php < 7)
require_once FCPATH . '/vendor/autoload.php';
$data = array (
'access_name' => $this->input->post('access_name', TRUE),
'ip_address' => $this->input->post('ip_address', TRUE),
Expand Down

0 comments on commit 47f4b28

Please sign in to comment.