lib/private/Share/Share.php 1 location
|
@@ 2625-2633 (lines=9) @@
|
| 2622 |
|
* @param string $url |
| 2623 |
|
* @return string |
| 2624 |
|
*/ |
| 2625 |
|
public static function removeProtocolFromUrl($url) { |
| 2626 |
|
if (\strpos($url, 'https://') === 0) { |
| 2627 |
|
return \substr($url, \strlen('https://')); |
| 2628 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 2629 |
|
return \substr($url, \strlen('http://')); |
| 2630 |
|
} |
| 2631 |
|
|
| 2632 |
|
return $url; |
| 2633 |
|
} |
| 2634 |
|
|
| 2635 |
|
/** |
| 2636 |
|
* try http post first with https and then with http as a fallback |
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())) { |