From 96eb2eef330c3348edfa3fe49a2764f61b7255d0 Mon Sep 17 00:00:00 2001 From: Jared Hendrickson Date: Sat, 11 Jan 2025 13:26:51 -0700 Subject: [PATCH] fix: make HAProxyBackend:: a Base64Field #640 --- .../files/usr/local/pkg/RESTAPI/Models/HAProxyBackend.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/HAProxyBackend.inc b/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/HAProxyBackend.inc index cbfda047..47c46000 100644 --- a/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/HAProxyBackend.inc +++ b/pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/HAProxyBackend.inc @@ -4,6 +4,7 @@ namespace RESTAPI\Models; use RESTAPI\Core\Model; use RESTAPI\Dispatchers\HAProxyApplyDispatcher; +use RESTAPI\Fields\Base64Field; use RESTAPI\Fields\BooleanField; use RESTAPI\Fields\IntegerField; use RESTAPI\Fields\InterfaceField; @@ -72,7 +73,7 @@ class HAProxyBackend extends Model { public NestedModelField $errorfiles; public BooleanField $cookie_attribute_secure; public StringField $advanced; - public StringField $advanced_backend; + public Base64Field $advanced_backend; public BooleanField $transparent_clientip; public InterfaceField $transparent_interface; @@ -439,7 +440,7 @@ class HAProxyBackend extends Model { allow_empty: true, help_text: 'The per server pass thru to apply to each server line.', ); - $this->advanced_backend = new StringField( + $this->advanced_backend = new Base64Field( default: '', allow_empty: true, help_text: 'The backend pass thru to apply to the backend section.',