aboutsummaryrefslogtreecommitdiffstats
path: root/mod/magic.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/magic.php')
-rw-r--r--mod/magic.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/magic.php b/mod/magic.php
index d7a6674ee..408619b7e 100644
--- a/mod/magic.php
+++ b/mod/magic.php
@@ -10,7 +10,8 @@ function magic_init(&$a) {
if($hash) {
$x = q("select xchan.xchan_url, hubloc.* from xchan left join hubloc on xchan_hash = hubloc_hash
- where hublock_hash = '%s' and (hubloc_flags & %d) limit 1",
+ where hubloc_hash = '%s' and (hubloc_flags & %d) limit 1",
+ dbesc($hash),
intval(HUBLOC_FLAGS_PRIMARY)
);
}