From c8482ae19effaed2a2e9237ef60d451e7e0c7260 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 11 Sep 2014 23:37:55 +0200 Subject: [PATCH] Bugfix: When repairing the url, the nurl wasn't set. --- mod/crepair.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/crepair.php b/mod/crepair.php index 9828124ea..d7eb14627 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -60,12 +60,14 @@ function crepair_post(&$a) { $attag = ((x($_POST,'attag')) ? $_POST['attag'] : ''); $photo = ((x($_POST,'photo')) ? $_POST['photo'] : ''); $remote_self = ((x($_POST,'remote_self')) ? $_POST['remote_self'] : false); + $nurl = normalise_link($url); - $r = q("UPDATE `contact` SET `name` = '%s', `nick` = '%s', `url` = '%s', `request` = '%s', `confirm` = '%s', `notify` = '%s', `poll` = '%s', `attag` = '%s' , `remote_self` = %d + $r = q("UPDATE `contact` SET `name` = '%s', `nick` = '%s', `url` = '%s', `nurl` = '%s', `request` = '%s', `confirm` = '%s', `notify` = '%s', `poll` = '%s', `attag` = '%s' , `remote_self` = %d WHERE `id` = %d AND `uid` = %d", dbesc($name), dbesc($nick), dbesc($url), + dbesc($nurl), dbesc($request), dbesc($confirm), dbesc($notify),