aboutsummaryrefslogtreecommitdiffstats
path: root/mod/linkinfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/linkinfo.php')
-rw-r--r--mod/linkinfo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/linkinfo.php b/mod/linkinfo.php
index c3df1305d..07eaa02a0 100644
--- a/mod/linkinfo.php
+++ b/mod/linkinfo.php
@@ -22,6 +22,8 @@ function linkinfo_content(&$a) {
else
$url = trim($_GET['url']);
+ $url = strip_zids($url);
+
if((substr($url,0,1) != '/') && (substr($url,0,4) != 'http'))
$url = 'http://' . $url;
@@ -113,7 +115,7 @@ function linkinfo_content(&$a) {
// If this is a Red site, use zrl rather than url so they get zids sent to them by default
- if( x($siteinfo,'generator') && (strpos($siteinfo['generator'],PLATFORM_NAME . ' ') === 0))
+ if( x($siteinfo,'generator') && (strpos($siteinfo['generator'], Zotlabs\Project\System::get_platform_name() . ' ') === 0))
$template = str_replace('url','zrl',$template);
if($siteinfo["title"] == "") {