]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: When repairing the url, the nurl wasn't set.
authorMichael Vogel <icarus@dabo.de>
Thu, 11 Sep 2014 21:37:55 +0000 (23:37 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 11 Sep 2014 21:37:55 +0000 (23:37 +0200)
mod/crepair.php

index 9828124ea7408503722a2d21c2ef4972acc6a424..d7eb14627c39e780a2144e3653809af321eba75a 100644 (file)
@@ -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),