From 9244e8727d4f57c304624246f7d4f578def1a813 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 10 May 2015 09:10:27 +0200 Subject: [PATCH] dbesc and normalise_link --- mod/match.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/match.php b/mod/match.php index af4b847908..aa0a69fc95 100644 --- a/mod/match.php +++ b/mod/match.php @@ -1,5 +1,5 @@ results as $jj) { - $match_nurl = str_replace(array('https:','//www.'), array('http:','//'), $jj->url); + $match_nurl = normalise_link($jj->url); $match = q("SELECT `nurl` FROM `contact` WHERE `uid` = '%d' AND nurl='%s' LIMIT 1", intval(local_user()), - $match_nurl); + dbesc($match_nurl)); if (!count($match)) { $connlnk = $a->get_baseurl() . '/follow/?url=' . $jj->url; -- 2.39.5