unterminated sql string

This commit is contained in:
friendica 2012-06-22 00:25:01 -07:00
parent 53c9ea7606
commit eeceecc9ba
3 changed files with 76 additions and 68 deletions

View file

@ -170,7 +170,7 @@ function dfrn_request_post(&$a) {
info( t("Introduction complete.") . EOL);
}
$r = q("select id from contact where uid = %d and url = '%s' and `site-pubkey` = '%s limit 1",
$r = q("select id from contact where uid = %d and url = '%s' and `site-pubkey` = '%s' limit 1",
intval(local_user()),
dbesc($dfrn_url),
$parms['key'] // this was already escaped