mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Escape args in xchan_fetch
This commit is contained in:
@@ -166,7 +166,7 @@ function xchan_fetch($arr) {
|
||||
if(! $key)
|
||||
return false;
|
||||
|
||||
$r = q("select * from xchan where $key = '$v' limit 1");
|
||||
$r = q("select * from xchan where $key = '%s' limit 1", dbesc($v));
|
||||
if(! $r)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user