Merge pull request #11214 from atm-maxime/7.0

Fix #8344
This commit is contained in:
Laurent Destailleur 2019-05-19 01:53:13 +02:00 committed by GitHub
commit 234ad4c76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1244,6 +1244,10 @@ function check_value($mask,$value)
if (! empty($reg[3]) && preg_match('/^@/',$reg[3])) $maskraz=preg_replace('/^@/','',$reg[3]);
if ($maskraz >= 0)
{
if ($maskraz == 99) {
$maskraz = date('m');
$resetEveryMonth = true;
}
if ($maskraz > 12) return 'ErrorBadMaskBadRazMonth';
// Define reg