[pmg-devel] applied: [PATCH pmg-api v2] fix #2153: allow "'" in quarantine email addresses

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 12 09:56:06 CEST 2019


On 4/10/19 12:54 PM, Mira Limbeck wrote:
> use the more relaxed standard option 'pmg-email-address' defined in
> PMG/Utils.pm instead of the 'email' format defined in pve-common
> 
> Signed-off-by: Mira Limbeck <m.limbeck at proxmox.com>
> ---
> v2:
>  - removed the "type => 'string'" line as it is already defined in 'pmg-email-address'
> 
>  PMG/API2/Quarantine.pm | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/PMG/API2/Quarantine.pm b/PMG/API2/Quarantine.pm
> index 158247b..a51cf1e 100644
> --- a/PMG/API2/Quarantine.pm
> +++ b/PMG/API2/Quarantine.pm
> @@ -151,11 +151,10 @@ my $parse_header_info = sub {
>      return $res;
>  };
>  
> -my $pmail_param_type = {
> +my $pmail_param_type = get_standard_option('pmg-email-address', {
>      description => "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
> -    type => 'string', format => 'email',
>      optional => 1,
> -};
> +});
>  
>  __PACKAGE__->register_method ({
>      name => 'index',
> 

applied



More information about the pmg-devel mailing list