lib/private/User/User.php 1 location
|
@@ 444-452 (lines=9) @@
|
| 441 |
|
* @param string $url |
| 442 |
|
* @return string |
| 443 |
|
*/ |
| 444 |
|
private function removeProtocolFromUrl($url) { |
| 445 |
|
if (strpos($url, 'https://') === 0) { |
| 446 |
|
return substr($url, strlen('https://')); |
| 447 |
|
} else if (strpos($url, 'http://') === 0) { |
| 448 |
|
return substr($url, strlen('http://')); |
| 449 |
|
} |
| 450 |
|
|
| 451 |
|
return $url; |
| 452 |
|
} |
| 453 |
|
|
| 454 |
|
public function triggerChange($feature, $value = null, $oldValue = null) { |
| 455 |
|
if ($this->emitter) { |
apps/federatedfilesharing/lib/AddressHandler.php 1 location
|
@@ 130-138 (lines=9) @@
|
| 127 |
|
* @param string $url |
| 128 |
|
* @return string |
| 129 |
|
*/ |
| 130 |
|
public function removeProtocolFromUrl($url) { |
| 131 |
|
if (strpos($url, 'https://') === 0) { |
| 132 |
|
return substr($url, strlen('https://')); |
| 133 |
|
} else if (strpos($url, 'http://') === 0) { |
| 134 |
|
return substr($url, strlen('http://')); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
return $url; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
/** |
| 141 |
|
* check if the url contain the protocol (http or https) |
lib/private/Share/Share.php 1 location
|
@@ 1942-1950 (lines=9) @@
|
| 1939 |
|
* @param string $url |
| 1940 |
|
* @return string |
| 1941 |
|
*/ |
| 1942 |
|
public static function removeProtocolFromUrl($url) { |
| 1943 |
|
if (strpos($url, 'https://') === 0) { |
| 1944 |
|
return substr($url, strlen('https://')); |
| 1945 |
|
} else if (strpos($url, 'http://') === 0) { |
| 1946 |
|
return substr($url, strlen('http://')); |
| 1947 |
|
} |
| 1948 |
|
|
| 1949 |
|
return $url; |
| 1950 |
|
} |
| 1951 |
|
|
| 1952 |
|
/** |
| 1953 |
|
* try http post first with https and then with http as a fallback |