diff options
author | Damien Regad <dregad@mantisbt.org> | 2021-02-07 00:23:03 +0100 |
---|---|---|
committer | Damien Regad <dregad@mantisbt.org> | 2021-02-07 00:23:03 +0100 |
commit | 66b64c2aa310280a42d7e9e42087a80cbca6db11 (patch) | |
tree | d1fb651e6b65717904d2a6a93e5aa2770b7ad119 /inc/HTTP | |
parent | 012c7cdc1eaa60ee12aedc0a77226245a4e8e121 (diff) | |
download | dokuwiki-66b64c2aa310280a42d7e9e42087a80cbca6db11.tar.gz dokuwiki-66b64c2aa310280a42d7e9e42087a80cbca6db11.zip |
Address Scrutinizer inspection failure
The variable ``$port`` seems only to be defined at a later point.
As such the call to ``isset()`` seems to always evaluate to ``false``.
Diffstat (limited to 'inc/HTTP')
-rw-r--r-- | inc/HTTP/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTP/HTTPClient.php b/inc/HTTP/HTTPClient.php index ea57fa64d..3c0edf7ad 100644 --- a/inc/HTTP/HTTPClient.php +++ b/inc/HTTP/HTTPClient.php @@ -193,7 +193,7 @@ class HTTPClient { $use_tls = $this->proxy_ssl; }else{ $request_url = $path; - if (!isset($port)) $port = ($uri['scheme'] == 'https') ? 443 : 80; + $port = $uriPort ?: ($uri['scheme'] == 'https' ? 443 : 80); $use_tls = ($uri['scheme'] == 'https'); } |