X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/f263e30a0aecad0e08d63a587cea1b83516d668b..9f0c5105e2c79feead651fd0de5d9ba725a2c1ff:/SL/DB/Shop.pm diff --git a/SL/DB/Shop.pm b/SL/DB/Shop.pm index 0018de693..c5e652aae 100644 --- a/SL/DB/Shop.pm +++ b/SL/DB/Shop.pm @@ -21,6 +21,9 @@ sub validate { push @errors, $::locale->text('The path is missing.') unless $self->{path}; 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 Protocol for Host Name seems invalid (expected: http:// or https://)!') + if ($self->{server} =~ m/:/ && $self->{server} !~ m/(^https:\/\/|^http:\/\/)/); + 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; @@ -30,7 +33,7 @@ sub validate { push @errors, $::locale->text('Shipping cost article is not implemented') if $self->{shipping_costs_parts_id}; push @errors, $::locale->text('Fetch from last order number is not implemented') if $self->{last_order_number}; } else { - push @errors, $::locale->text('Use Long Description from Parts is only for Shopware6 implemented') + push @errors, $::locale->text('Use Long Description from Parts is only for Shopware6 implemented') if $self->{use_part_longdescription}; } return @errors;