the '|' is not necessary since the first option is empty (mitigated by
the minLength of 3) and add the '\' to forbidden characters since
they make problems with browser requests (browsers convert '\' to '/')
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE::JSONSchema::register_standard_option('pmg-email-address', {
description => "Email Address (allow most characters).",
type => 'string',
- pattern => '(?:|[^\s\/\@]+\@[^\s\/\@]+)',
+ pattern => '(?:[^\s\/\\\@]+\@[^\s\/\\\@]+)',
maxLength => 512,
minLength => 3,
});