From 645e897852c1e9b95923ba5a2faf07f63a49d537 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 2 Dec 2013 19:06:54 -0800 Subject: more work on magic-auth --- mod/magic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/magic.php') diff --git a/mod/magic.php b/mod/magic.php index 29d16eec5..a268f1ecb 100644 --- a/mod/magic.php +++ b/mod/magic.php @@ -20,7 +20,7 @@ function magic_init(&$a) { $basepath = $parsed['scheme'] . '://' . $parsed['host'] . (($parsed['port']) ? ':' . $parsed['port'] : ''); - $x = q("select * from hubloc where hubloc_url = '%s' order by hubloc_connected desc limit 1" + $x = q("select * from hubloc where hubloc_url = '%s' order by hubloc_connected desc limit 1", dbesc($basepath) ); @@ -37,7 +37,7 @@ function magic_init(&$a) { // Now try again - $x = q("select * from hubloc where hubloc_url = '%s' order by hubloc_connected desc limit 1" + $x = q("select * from hubloc where hubloc_url = '%s' order by hubloc_connected desc limit 1", dbesc($basepath) ); } -- cgit v1.2.3