mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:10:11 +00:00
normalise_link calls
implement normaliseLink function
This commit is contained in:
parent
5276c28a78
commit
ffc406d819
54 changed files with 248 additions and 222 deletions
|
@ -369,7 +369,7 @@ class Strings
|
|||
*
|
||||
* @return string Normalized URL.
|
||||
*/
|
||||
public static function normaliseLink($url) // normalise_link()
|
||||
public static function normaliseLink($url)
|
||||
{
|
||||
$ret = str_replace(['https:', '//www.'], ['http:', '//'], $url);
|
||||
return rtrim($ret, '/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue