From: Jan Büren Date: Wed, 9 Feb 2022 09:20:55 +0000 (+0100) Subject: Shopware-Proxy: Leeren Wert '' erlauben und danach regex prüfen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~218^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=68d61d09651529193e2d2e48c9194862b9d8fcaa;p=kivitendo-erp.git Shopware-Proxy: Leeren Wert '' erlauben und danach regex prüfen --- 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;