diff options
author | Mario <mario@mariovavti.com> | 2021-10-14 18:16:27 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-10-14 18:16:27 +0000 |
commit | 9b8b85545fef4be30ee6085c4ffc7bc152d5448c (patch) | |
tree | a44fae6e8b199341d6d5aee933a3a96310cbe1a7 /Zotlabs | |
parent | 532b479f96eea701080d5533e5f28acab9af76ba (diff) | |
parent | c3d1474f5951558b6eb01bfcbf04f94b2e648ba5 (diff) | |
download | volse-hubzilla-9b8b85545fef4be30ee6085c4ffc7bc152d5448c.tar.gz volse-hubzilla-9b8b85545fef4be30ee6085c4ffc7bc152d5448c.tar.bz2 volse-hubzilla-9b8b85545fef4be30ee6085c4ffc7bc152d5448c.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Linkinfo.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Linkinfo.php b/Zotlabs/Module/Linkinfo.php index a05575cb6..038c739d5 100644 --- a/Zotlabs/Module/Linkinfo.php +++ b/Zotlabs/Module/Linkinfo.php @@ -29,6 +29,9 @@ class Linkinfo extends \Zotlabs\Web\Controller { if((substr($url,0,1) != '/') && (substr($url,0,4) != 'http')) $url = 'http://' . $url; + $x = parse_url($url); + if ($x) + $url = str_replace($x['host'], punify($x['host']), $url); if($_GET['title']) $title = strip_tags(trim($_GET['title'])); |