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:
parent
fb49647993
commit
14fd940e08
@ -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);
|
||||
|
6474
util/messages.po
6474
util/messages.po
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
||||
2014-02-06.580
|
||||
2014-02-07.581
|
||||
|
Reference in New Issue
Block a user