fix the xchan lookup tool

This commit is contained in:
friendica 2014-02-05 18:51:50 -08:00
parent 1b406be544
commit cb6716a644

View File

@ -14,9 +14,11 @@ function xchan_content(&$a) {
if(x($_GET,'addr')) { if(x($_GET,'addr')) {
$addr = trim($_GET['addr']); $addr = trim($_GET['addr']);
$r = q("select xchan_name from xchan where xchan_hash like '%s%%'", $r = q("select xchan_name from xchan where xchan_hash like '%s%%'",
dbesc(addr) dbesc($addr)
); );
if($r) { if($r) {
foreach($r as $rr) foreach($r as $rr)
$o .= $rr['xchan_name'] . EOL; $o .= $rr['xchan_name'] . EOL;