To be listed as a public site, you need to be an https site with a valid cert. If you don't make the cut, you will either not be listed as a public site or you will be de-listed. Period. This is non-negotiable.

This commit is contained in:
friendica 2014-02-07 00:50:04 -08:00
parent fb49647993
commit 14fd940e08
3 changed files with 3301 additions and 3186 deletions

View File

@ -1873,6 +1873,17 @@ function import_site($arr,$pubkey) {
$access_policy = ACCESS_TIERED;
}
// don't let insecure sites register as public hubs
if(strpos($arr['url'],'https://') === false)
$access_policy = ACCESS_PRIVATE;
if($access_policy != ACCESS_PRIVATE) {
$x = z_fetch_url($arr['url'] . '/siteinfo/json');
if(! $x['success'])
$access_policy = ACCESS_PRIVATE;
}
$directory_url = htmlspecialchars($arr['directory_url'],ENT_COMPAT,'UTF-8',false);
$url = htmlspecialchars($arr['url'],ENT_COMPAT,'UTF-8',false);
$sellpage = htmlspecialchars($arr['sellpage'],ENT_COMPAT,'UTF-8',false);

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
2014-02-06.580
2014-02-07.581