aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Zotlabs/Lib/Libzot.php6
-rw-r--r--include/auth.php2
2 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index b0d33e055..c635fdb17 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -291,6 +291,12 @@ class Libzot {
}
$m = parse_url($url);
+
+ if (!$m) {
+ logger('zot_refresh: could not parse url');
+ return false;
+ }
+
$site_url = unparse_url([ 'scheme' => $m['scheme'], 'host' => $m['host'] ]);
$s = q("select site_dead from site where site_url = '%s' limit 1",
diff --git a/include/auth.php b/include/auth.php
index 4f4d26a6c..8f0b137be 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -94,7 +94,7 @@ function account_verify_password($login, $pass) {
$where = " where account_email = '" . dbesc($login) . "' ";
}
- $a = q("select * from account $where");
+ $a = dbq("select * from account $where");
if(! $a) {
return null;
}