| @@ 1705-1708 (lines=4) @@ | ||
| 1702 | { |
|
| 1703 | $curl = $curl['version']; |
|
| 1704 | } |
|
| 1705 | elseif (substr($curl, 0, 5) === 'curl/') |
|
| 1706 | { |
|
| 1707 | $curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5)); |
|
| 1708 | } |
|
| 1709 | elseif (substr($curl, 0, 8) === 'libcurl/') |
|
| 1710 | { |
|
| 1711 | $curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8)); |
|
| @@ 1709-1712 (lines=4) @@ | ||
| 1706 | { |
|
| 1707 | $curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5)); |
|
| 1708 | } |
|
| 1709 | elseif (substr($curl, 0, 8) === 'libcurl/') |
|
| 1710 | { |
|
| 1711 | $curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8)); |
|
| 1712 | } |
|
| 1713 | else |
|
| 1714 | { |
|
| 1715 | $curl = 0; |
|