System: Trust: Revocation - forgot to persist new lifetime, causing the following exception:

Exception: Failed to parse time string (+ days) at position 0 (+): Unexpected character in /usr/local/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CrlController.php:347
Stack trace:
This commit is contained in:
Ad Schellevis 2024-04-23 10:46:38 +02:00
parent 633ba995ed
commit 862b1d7f8f

View File

@ -299,6 +299,7 @@ class CrlController extends ApiControllerBase
$crl->text = base64_encode((string)$payload['text']);
}
$crl->caref = (string)$caref;
$crl->lifetime = (string)$payload['lifetime'];
$crl->descr = (string)$payload['descr'];
$crl->serial = !empty($payload['serial']) ? $payload['serial'] : $crl->serial;
$crl->serial = ((int)((string)$crl->serial)) + 1;