Skip to content

Commit

Permalink
Make php 7 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
asternic committed Sep 15, 2023
1 parent ce2429d commit 248f78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/usr/share/issabel/privileged/dateconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function validateOptions($opt)
{
foreach ($opt[0] as $option) switch ($option[0]) {
case '--timezone':
if (!preg_match('|^[[:alnum:]-_/]+$|', $option[1]))
if (!preg_match('|^[[:alnum:]\-_/]+$|', $option[1]))
error_exit('Option '.$option[0].": Invalid timezone\n");

// Check on /usr/share/zoneinfo/zone.tab whether the zone exists
Expand Down

0 comments on commit 248f78a

Please sign in to comment.