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
|
@@ 477-485 (lines=9) @@
|
474 |
|
* @param string $url |
475 |
|
* @return string |
476 |
|
*/ |
477 |
|
private function removeProtocolFromUrl($url) { |
478 |
|
if (\strpos($url, 'https://') === 0) { |
479 |
|
return \substr($url, \strlen('https://')); |
480 |
|
} elseif (\strpos($url, 'http://') === 0) { |
481 |
|
return \substr($url, \strlen('http://')); |
482 |
|
} |
483 |
|
|
484 |
|
return $url; |
485 |
|
} |
486 |
|
|
487 |
|
public function triggerChange($feature, $value = null) { |
488 |
|
if ($this->emitter && \in_array($feature, $this->account->getUpdatedFields())) { |