Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
e54a501058
@ -50,6 +50,9 @@ class RedDirectory extends DAV\Node implements DAV\ICollection {
|
||||
function getChild($name) {
|
||||
|
||||
logger('RedDirectory::getChild : ' . $name, LOGGER_DATA);
|
||||
$name = str_replace(array('?f=','&f='),array('',''),$name);
|
||||
$name = preg_replace('/[\?&]zid=(.*?)([\?&]|$)/ism','',$name);
|
||||
logger('RedDirectory::getChild post strip zid: ' . $name, LOGGER_DATA);
|
||||
|
||||
|
||||
if(get_config('system','block_public') && (! $this->auth->channel_id) && (! $this->auth->observer)) {
|
||||
|
@ -8,11 +8,12 @@ function search_init(&$a) {
|
||||
|
||||
function search_content(&$a,$update = 0, $load = false) {
|
||||
|
||||
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
||||
notice( t('Public access denied.') . EOL);
|
||||
if((get_config('system','block_public')) || (get_config('system','block_public_search'))) {
|
||||
if ((! local_user()) && (! remote_user())) {
|
||||
notice( t('Public access denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
nav_set_selected('search');
|
||||
|
||||
require_once("include/bbcode.php");
|
||||
|
Reference in New Issue
Block a user