Compare commits

...

2 commits

Author SHA1 Message Date
c70205f2ac
Removed testing point
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-19 13:34:03 -04:00
50f998c2ab
Ensure numeric validation for configuration variables and set default for server keypair expiration 2025-03-19 13:33:38 -04:00
3 changed files with 2 additions and 3 deletions

View file

@ -361,7 +361,6 @@ jobs:
docker-compose -f docker-compose.test.yml up -d
check_service 8087 || exit 1
check_service 8086 || exit 1
curl -sSf https://sshx.io/get | sh -s run
php phpunit-11.3.phar --configuration phpunit.xml --log-junit reports/junit.xml --log-teamcity reports/teamcity --testdox-html reports/testdox.html --testdox-text reports/testdox.txt
- name: Upload test reports

View file

@ -348,7 +348,7 @@
case 'SB_CRYPTO_KEYPAIR_EXPIRES':
case 'SB_CRYPTO_ENCRYPTION_KEYS_COUNT':
case 'SB_CACHE_PORT':
if($variable !== false)
if($variable !== false && is_numeric($variable))
{
Configuration::getConfigurationLib()->set($config, (int) $variable);
Program::getLogger()->info(sprintf('Set %s to %s', $config, $variable));

View file

@ -19,7 +19,7 @@
public function __construct(array $data)
{
$this->serverName = $data['server_name'];
$this->serverKeypairExpires = $data['server_keypair_expires'];
$this->serverKeypairExpires = (int)$data['server_keypair_expires'] ?? 0;
$this->transportEncryptionAlgorithm = $data['transport_encryption_algorithm'];
}