X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdelegate.php;h=8c50318590532211d965a10e4f75fbf1f48c35ff;hb=759015e5fd3ec4a5a9c19203dd18f72144127f26;hp=56d11970fe7d3dfadf9335f1ad69bb4c04e5b12a;hpb=068cb53a9ea44cf276c6b0e39ef92182b883d5fa;p=friendica.git diff --git a/mod/delegate.php b/mod/delegate.php index 56d11970fe..8c50318590 100644 --- a/mod/delegate.php +++ b/mod/delegate.php @@ -54,8 +54,7 @@ function delegate_content(&$a) { // These people can manage this account/page with full privilege - $r = q("SELECT * FROM `user` WHERE `uid` = %d AND `email` = '%s' AND `password` = '%s' LIMIT 1", - intval(local_user()), + $r = q("SELECT * FROM `user` WHERE `email` = '%s' AND `password` = '%s' ", dbesc($a->user['email']), dbesc($a->user['password']) ); @@ -87,7 +86,7 @@ function delegate_content(&$a) { $r = q("select nurl from contact where substring_index(contact.nurl,'/',3) = '%s' and contact.uid = %d and contact.self = 0 and network = '%s' ", - dbesc($a->get_baseurl()), + dbesc(normalise_link($a->get_baseurl())), intval(local_user()), dbesc(NETWORK_DFRN) );