mirror of
https://github.com/friendica/friendica
synced 2025-04-24 04:30:11 +00:00
Alternate solution for pull request 3124
This commit is contained in:
parent
9259feec6f
commit
ea22828d37
5 changed files with 49 additions and 14 deletions
|
@ -145,9 +145,7 @@ function dfrn_request_post(App $a) {
|
|||
$photo = $parms["photo"];
|
||||
|
||||
// Escape the entire array
|
||||
|
||||
dbesc_array($parms);
|
||||
|
||||
dbm::esc_array($parms);
|
||||
|
||||
/*
|
||||
* Create a contact record on our site for the other person
|
||||
|
@ -547,7 +545,7 @@ function dfrn_request_post(App $a) {
|
|||
$parms['issued-id'] = $issued_id;
|
||||
$photo = $parms["photo"];
|
||||
|
||||
dbesc_array($parms);
|
||||
dbm::esc_array($parms);
|
||||
$r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `nurl`, `addr`, `name`, `nick`, `issued-id`, `photo`, `site-pubkey`,
|
||||
`request`, `confirm`, `notify`, `poll`, `poco`, `network`, `blocked`, `pending` )
|
||||
VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d )",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue