Skip to content

Commit 90eb8e8

Browse files
fix(OpenVPNClientExportTraits): ensure legacy is always an array #808 (#819)
1 parent 5282620 commit 90eb8e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/ModelTraits/OpenVPNClientExportTraits.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ trait OpenVPNClientExportTraits {
193193
public function validate_legacy(bool $legacy): bool {
194194
if ($legacy) {
195195
global $legacy_incompatible_ciphers;
196+
$legacy_incompatible_ciphers = $legacy_incompatible_ciphers ?? [];
196197
$settings = get_openvpnserver_by_id($this->server->value);
197198
if (in_array($settings['data_ciphers_fallback'], $legacy_incompatible_ciphers)) {
198199
throw new ConflictError(

0 commit comments

Comments
 (0)