Escape args in xchan_fetch

This commit is contained in:
Harald Eilertsen
2026-01-04 14:55:03 +01:00
parent b6a58fbf6e
commit cedc6c4230
2 changed files with 35 additions and 1 deletions

View File

@@ -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;