aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-14 13:16:18 +0000
committerMario <mario@mariovavti.com>2021-10-14 13:16:18 +0000
commitc3d1474f5951558b6eb01bfcbf04f94b2e648ba5 (patch)
treef8de457c84a711d4f39c7dbe4095228dbbc5cb5e /Zotlabs
parent138a67298dffe60315cf835d12d76db8206f0031 (diff)
parent99873504e4bc568281d5a978a6521edf3caf3da4 (diff)
downloadvolse-hubzilla-c3d1474f5951558b6eb01bfcbf04f94b2e648ba5.tar.gz
volse-hubzilla-c3d1474f5951558b6eb01bfcbf04f94b2e648ba5.tar.bz2
volse-hubzilla-c3d1474f5951558b6eb01bfcbf04f94b2e648ba5.zip
Merge branch 'dev' into 'dev'
Support IDNA URLs embedding See merge request hubzilla/core!1990
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Linkinfo.php3
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']));