lib/private/User/RemoteUser.php 1 location
|
@@ 168-176 (lines=9) @@
|
| 165 |
|
* @param string $url |
| 166 |
|
* @return string |
| 167 |
|
*/ |
| 168 |
|
private function removeProtocolFromUrl($url) { |
| 169 |
|
if (\strpos($url, 'https://') === 0) { |
| 170 |
|
return \substr($url, \strlen('https://')); |
| 171 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 172 |
|
return \substr($url, \strlen('http://')); |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
return $url; |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
/** |
| 179 |
|
* @inheritdoc |
lib/private/User/User.php 1 location
|
@@ 470-478 (lines=9) @@
|
| 467 |
|
* @param string $url |
| 468 |
|
* @return string |
| 469 |
|
*/ |
| 470 |
|
private function removeProtocolFromUrl($url) { |
| 471 |
|
if (\strpos($url, 'https://') === 0) { |
| 472 |
|
return \substr($url, \strlen('https://')); |
| 473 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 474 |
|
return \substr($url, \strlen('http://')); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
return $url; |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
public function triggerChange($feature, $value = null) { |
| 481 |
|
if ($this->emitter && \in_array($feature, $this->account->getUpdatedFields())) { |
lib/private/Share/Share.php 1 location
|
@@ 2404-2412 (lines=9) @@
|
| 2401 |
|
* @param string $url |
| 2402 |
|
* @return string |
| 2403 |
|
*/ |
| 2404 |
|
public static function removeProtocolFromUrl($url) { |
| 2405 |
|
if (\strpos($url, 'https://') === 0) { |
| 2406 |
|
return \substr($url, \strlen('https://')); |
| 2407 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 2408 |
|
return \substr($url, \strlen('http://')); |
| 2409 |
|
} |
| 2410 |
|
|
| 2411 |
|
return $url; |
| 2412 |
|
} |
| 2413 |
|
|
| 2414 |
|
/** |
| 2415 |
|
* try http post first with https and then with http as a fallback |