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
|
@@ 181-189 (lines=9) @@
|
| 178 |
|
* @param string $url |
| 179 |
|
* @return string |
| 180 |
|
*/ |
| 181 |
|
private function removeProtocolFromUrl($url) { |
| 182 |
|
if (\strpos($url, 'https://') === 0) { |
| 183 |
|
return \substr($url, \strlen('https://')); |
| 184 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 185 |
|
return \substr($url, \strlen('http://')); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
return $url; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
/** |
| 192 |
|
* @inheritdoc |
lib/private/User/User.php 1 location
|
@@ 506-514 (lines=9) @@
|
| 503 |
|
* @param string $url |
| 504 |
|
* @return string |
| 505 |
|
*/ |
| 506 |
|
private function removeProtocolFromUrl($url) { |
| 507 |
|
if (\strpos($url, 'https://') === 0) { |
| 508 |
|
return \substr($url, \strlen('https://')); |
| 509 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 510 |
|
return \substr($url, \strlen('http://')); |
| 511 |
|
} |
| 512 |
|
|
| 513 |
|
return $url; |
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
public function triggerChange($feature, $value = null) { |
| 517 |
|
if ($this->emitter && \in_array($feature, $this->account->getUpdatedFields())) { |