apps/federation/lib/DbHandler.php
/**
	 * normalize URL, used to create the sha1 hash
	 *
	 * @param string $url
	 * @return string
	 */
normalize URL, used to create the sha1 hash
@param string $url
@return string
normalize URL used to create the sha1 hash @param string $url @return string
protected function normalizeUrl($url) {
		$normalized = $url;
		if (strpos($url, 'https://') === 0) {
			$normalized = substr($url, strlen('https://'));
		} else if (strpos($url, 'http://') === 0) {
			$normalized = substr($url, strlen('http://'));
		}
		$normalized = Filesystem::normalizePath($normalized);
		$normalized = trim($normalized, '/');
		return $normalized;
	}
protected function normalizeUrl ( $ url ) { $ normalized = $ url ; if ( strpos ( $ url , 'https://' ) === 0 ) { $ normalized = substr ( $ url , strlen ( 'https://' ) ) ; } else if ( strpos ( $ url , 'http://' ) === 0 ) { $ normalized = substr ( $ url , strlen ( 'http://' ) ) ; } $ normalized = Filesystem :: normalizePath ( $ normalized ) ; $ normalized = trim ( $ normalized , '/' ) ; return $ normalized ; }
normalize URL, used to create the sha1 hash
 @param string $url
 @return string
normalize URL used to create the sha1 hash @param string $url @return string