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())) { |
lib/private/Share/Share.php 1 location
|
@@ 489-497 (lines=9) @@
|
| 486 |
|
* @param string $url |
| 487 |
|
* @return string |
| 488 |
|
*/ |
| 489 |
|
public static function removeProtocolFromUrl($url) { |
| 490 |
|
if (\strpos($url, 'https://') === 0) { |
| 491 |
|
return \substr($url, \strlen('https://')); |
| 492 |
|
} elseif (\strpos($url, 'http://') === 0) { |
| 493 |
|
return \substr($url, \strlen('http://')); |
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
return $url; |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
/** |
| 500 |
|
* @param $group |