|
@@ -80,7 +80,7 @@ discard block |
|
|
block discarded – undo |
|
80
|
80
|
public function sendPostRequest($path, array $parameters = []) |
|
81
|
81
|
{ |
|
82
|
82
|
// Cleaning POST parameters from potential @file injections |
|
83
|
|
- array_walk($parameters, function (string &$value, string $key) { |
|
|
83
|
+ array_walk($parameters, function(string & $value, string $key) { |
|
84
|
84
|
str_replace('@', '', $value); |
|
85
|
85
|
}); |
|
86
|
86
|
|
|
@@ -159,11 +159,11 @@ discard block |
|
|
block discarded – undo |
|
159
|
159
|
{ |
|
160
|
160
|
// Overriding protocol |
|
161
|
161
|
if (!$useProtocol) { |
|
162
|
|
- $baseUrl = str_replace(['http://', 'https://',], ($this->useHttps) ? 'https://' : 'http://', $baseUrl); |
|
|
162
|
+ $baseUrl = str_replace(['http://', 'https://', ], ($this->useHttps) ? 'https://' : 'http://', $baseUrl); |
|
163
|
163
|
} |
|
164
|
164
|
// Adding missing protocol |
|
165
|
165
|
if ((false === strpos(strtolower($baseUrl), 'http://')) && (false === strpos(strtolower($baseUrl), 'https://'))) { |
|
166
|
|
- $baseUrl = (($this->useHttps) ? 'https://' : 'http://') . $baseUrl; |
|
|
166
|
+ $baseUrl = (($this->useHttps) ? 'https://' : 'http://').$baseUrl; |
|
167
|
167
|
} |
|
168
|
168
|
|
|
169
|
169
|
$this->client->setBaseUrl($baseUrl); |
Please login to merge, or discard this patch.