From 8b78e01d4c4b9512a7b74efa52fcaf37de0dc6f1 Mon Sep 17 00:00:00 2001 From: hannes Date: Tue, 5 Jan 2016 23:06:02 +0000 Subject: [PATCH] $longurl->url is just the same $canon we fed to File_redirection::where() --- lib/util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.php b/lib/util.php index 3b5bb2de08..c03775f577 100644 --- a/lib/util.php +++ b/lib/util.php @@ -980,7 +980,7 @@ function common_linkify($url) { } else { $canon = File_redirection::_canonUrl($url); $longurl_data = File_redirection::where($canon, common_config('attachments', 'process_links')); - $longurl = $longurl_data->url; + $longurl = $longurl_data->redir_url; } $attrs = array('href' => $canon, 'title' => $longurl); @@ -2430,4 +2430,4 @@ function html_sprintf() $args[$i] = htmlspecialchars($args[$i]); } return call_user_func_array('sprintf', $args); -} +} \ No newline at end of file -- 2.39.2