]> git.proxmox.com Git - pmg-api.git/commitdiff
fix #2153: allow "'" in quarantine email addresses
authorMira Limbeck <m.limbeck@proxmox.com>
Wed, 10 Apr 2019 10:54:37 +0000 (12:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 12 Apr 2019 07:54:16 +0000 (09:54 +0200)
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@proxmox.com>
PMG/API2/Quarantine.pm

index 158247b14dc7303eab38b3738188189599675554..a51cf1e283bdf1c72e2f479336456c044f3ed114 100644 (file)
@@ -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',