Source
'uri_valid_schemes' => 'http,https,ftp,file,mailto,tel,ssh,http,https,ftp,file,mailto,tel,ssh,http,https,'.
<?php
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
require_once dirname(__FILE__).'/common/testFormAdministrationGeneral.php';
/**
* @backup config
*/
class testFormAdministrationGeneralOtherParams extends testFormAdministrationGeneral {
public $config_link = 'zabbix.php?action=miscconfig.edit';
public $form_selector = 'name:otherForm';
public $default_values = [
'Frontend URL' => '',
'Group for discovered hosts' => 'Empty group',
'Default host inventory mode' => 'Disabled',
'User group for database down message' => 'Zabbix administrators',
'Log unmatched SNMP traps' => true,
// Authorization.
'Login attempts' => 5,
'Login blocking interval' => '30s',
// Storage of secrets
'Vault provider' => 'HashiCorp Vault',
// Security.
'Validate URI schemes' => true,
'Valid URI schemes' => 'http,https,ftp,file,mailto,tel,ssh',
'X-Frame-Options HTTP header' => 'SAMEORIGIN',
'Use iframe sandboxing' => true,
'Iframe sandboxing exceptions' => ''
];
public $db_default_values = [
'url' => '',
'discovery_groupid' => 50006,
'default_inventory_mode' => -1,
'alert_usrgrpid' => 7,
'snmptrap_logging' => 1,
// Authorization.
'login_attempts' => 5,
'login_block' => '30s',
// Storage of secrets
'vault_provider' => 0,
// Security.
'validate_uri_schemes' => 1,
'uri_valid_schemes' => 'http,https,ftp,file,mailto,tel,ssh',