aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-26 16:39:12 -0800
committerzotlabs <mike@macgirvin.com>2018-02-26 16:39:12 -0800
commit87079e8071e491dd6d0bb4a76723b53010fdf509 (patch)
treec5feffa5afe5392c6073ecbb4bb518a3edc82a88 /Zotlabs
parentf83b7c2d52ba122d9695c68fdbfaf0ed12e55ebc (diff)
downloadvolse-hubzilla-87079e8071e491dd6d0bb4a76723b53010fdf509.tar.gz
volse-hubzilla-87079e8071e491dd6d0bb4a76723b53010fdf509.tar.bz2
volse-hubzilla-87079e8071e491dd6d0bb4a76723b53010fdf509.zip
require directory servers to be using some modern form of encryption; which means we only currently have 2.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Admin/Site.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Admin/Site.php b/Zotlabs/Module/Admin/Site.php
index b7c558ce7..880dbbe4b 100644
--- a/Zotlabs/Module/Admin/Site.php
+++ b/Zotlabs/Module/Admin/Site.php
@@ -220,9 +220,10 @@ class Site {
$realm = get_directory_realm();
// directory server should not be set or settable unless we are a directory client
+ // avoid older redmatrix servers which don't have modern encryption
if($dirmode == DIRECTORY_MODE_NORMAL) {
- $x = q("select site_url from site where site_flags in (%d,%d) and site_realm = '%s' and site_dead = 0",
+ $x = q("select site_url from site where site_flags in (%d,%d) and site_realm = '%s' and site_dead = 0 and site_project != 'redmatrix'",
intval(DIRECTORY_MODE_SECONDARY),
intval(DIRECTORY_MODE_PRIMARY),
dbesc($realm)