From 68d61d09651529193e2d2e48c9194862b9d8fcaa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 9 Feb 2022 10:20:55 +0100 Subject: [PATCH] =?utf8?q?Shopware-Proxy:=20Leeren=20Wert=20''=20erlauben?= =?utf8?q?=20und=20danach=20regex=20pr=C3=BCfen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Shop.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/Shop.pm b/SL/DB/Shop.pm index 6b0035067..55f81e551 100644 --- a/SL/DB/Shop.pm +++ b/SL/DB/Shop.pm @@ -22,6 +22,7 @@ sub validate { push @errors, $::locale->text('The Host Name is missing') unless $self->{server}; push @errors, $::locale->text('The Host Name seems invalid') unless $self->{server} =~ m/[0-9A-Za-z].\.[0-9A-Za-z]/; push @errors, $::locale->text('The Proxy Name seems invalid') unless $self->{proxy} =~ m/[0-9A-Za-z].\.[0-9A-Za-z]/; + push @errors, $::locale->text('The Proxy Name seems invalid') . $self->{proxy} . ':' unless !$self->{proxy} || $self->{proxy} =~ m/[0-9A-Za-z].\.[0-9A-Za-z]/; push @errors, $::locale->text('Orders to fetch neeeds a positive Integer') unless $self->{orders_to_fetch} > 0; -- 2.20.1