apps/federatedfilesharing/lib/AddressHandler.php 1 location
|
@@ 129-137 (lines=9) @@
|
| 126 |
|
* @param string $url |
| 127 |
|
* @return string |
| 128 |
|
*/ |
| 129 |
|
public function removeProtocolFromUrl($url) { |
| 130 |
|
if (strpos($url, 'https://') === 0) { |
| 131 |
|
return substr($url, strlen('https://')); |
| 132 |
|
} else if (strpos($url, 'http://') === 0) { |
| 133 |
|
return substr($url, strlen('http://')); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
return $url; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
/** |
| 140 |
|
* check if the url contain the protocol (http or https) |
lib/private/Share/Share.php 1 location
|
@@ 2726-2734 (lines=9) @@
|
| 2723 |
|
* @param string $url |
| 2724 |
|
* @return string |
| 2725 |
|
*/ |
| 2726 |
|
public static function removeProtocolFromUrl($url) { |
| 2727 |
|
if (strpos($url, 'https://') === 0) { |
| 2728 |
|
return substr($url, strlen('https://')); |
| 2729 |
|
} else if (strpos($url, 'http://') === 0) { |
| 2730 |
|
return substr($url, strlen('http://')); |
| 2731 |
|
} |
| 2732 |
|
|
| 2733 |
|
return $url; |
| 2734 |
|
} |
| 2735 |
|
|
| 2736 |
|
/** |
| 2737 |
|
* try http post first with https and then with http as a fallback |
lib/private/User/User.php 1 location
|
@@ 428-436 (lines=9) @@
|
| 425 |
|
* @param string $url |
| 426 |
|
* @return string |
| 427 |
|
*/ |
| 428 |
|
private function removeProtocolFromUrl($url) { |
| 429 |
|
if (strpos($url, 'https://') === 0) { |
| 430 |
|
return substr($url, strlen('https://')); |
| 431 |
|
} else if (strpos($url, 'http://') === 0) { |
| 432 |
|
return substr($url, strlen('http://')); |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
return $url; |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
public function triggerChange($feature, $value = null) { |
| 439 |
|
if ($this->emitter) { |