| @@ 306-314 (lines=9) @@ | ||
| 303 | * |
|
| 304 | * @return string |
|
| 305 | */ |
|
| 306 | private function generateLinkRemoteURL($remote) { |
|
| 307 | if ((!$this->configService->isNonSSLLinksAllowed() || strpos($remote, 'http://') !== 0) |
|
| 308 | && strpos($remote, 'https://') !== 0 |
|
| 309 | ) { |
|
| 310 | $remote = 'https://' . $remote; |
|
| 311 | } |
|
| 312 | ||
| 313 | return rtrim($remote, '/') . self::REMOTE_URL_LINK; |
|
| 314 | } |
|
| 315 | ||
| 316 | ||
| 317 | /** |
|
| @@ 322-330 (lines=9) @@ | ||
| 319 | * |
|
| 320 | * @return string |
|
| 321 | */ |
|
| 322 | private function generatePayloadDeliveryURL($remote) { |
|
| 323 | if ((!$this->configService->isNonSSLLinksAllowed() || strpos($remote, 'http://') !== 0) |
|
| 324 | && strpos($remote, 'https://') !== 0 |
|
| 325 | ) { |
|
| 326 | $remote = 'https://' . $remote; |
|
| 327 | } |
|
| 328 | ||
| 329 | return rtrim($remote, '/') . self::REMOTE_URL_PAYLOAD; |
|
| 330 | } |
|
| 331 | ||
| 332 | ||
| 333 | /** |
|