Skip to content

Commit

Permalink
Optim : 'preg_split' can be replaced with 'explode'
Browse files Browse the repository at this point in the history
  • Loading branch information
s-renier-taonix-fr authored and f3l1x committed Feb 13, 2023
1 parent c73d742 commit 2ca8a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3451,7 +3451,7 @@ function usePersistentConnection()
function parseCookie($cookie_str)
{
$cookie_str = str_replace('; ', ';', $cookie_str) . ';';
$data = preg_split('/;/', $cookie_str);
$data = explode (';', $cookie_str);
$value_str = $data[0];

$cookie_param = 'domain=';
Expand Down

0 comments on commit 2ca8a00

Please sign in to comment.