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
|
@@ 2719-2727 (lines=9) @@
|
| 2716 |
|
* @param string $url |
| 2717 |
|
* @return string |
| 2718 |
|
*/ |
| 2719 |
|
public static function removeProtocolFromUrl($url) { |
| 2720 |
|
if (strpos($url, 'https://') === 0) { |
| 2721 |
|
return substr($url, strlen('https://')); |
| 2722 |
|
} else if (strpos($url, 'http://') === 0) { |
| 2723 |
|
return substr($url, strlen('http://')); |
| 2724 |
|
} |
| 2725 |
|
|
| 2726 |
|
return $url; |
| 2727 |
|
} |
| 2728 |
|
|
| 2729 |
|
/** |
| 2730 |
|
* try http post first with https and then with http as a fallback |
lib/private/User/User.php 1 location
|
@@ 438-446 (lines=9) @@
|
| 435 |
|
* @param string $url |
| 436 |
|
* @return string |
| 437 |
|
*/ |
| 438 |
|
private function removeProtocolFromUrl($url) { |
| 439 |
|
if (strpos($url, 'https://') === 0) { |
| 440 |
|
return substr($url, strlen('https://')); |
| 441 |
|
} else if (strpos($url, 'http://') === 0) { |
| 442 |
|
return substr($url, strlen('http://')); |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
return $url; |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
public function triggerChange($feature, $value = null, $oldValue = null) { |
| 449 |
|
if ($this->emitter) { |