X-Git-Url: https://git.cweiske.de/gamestick-pjgsapi.git/blobdiff_plain/d50d783426cbc2ec3c4479091b76354bcc0ad594..bf529029981d9b3c81b73327afecfba599e97754:/www/activate.php diff --git a/www/activate.php b/www/activate.php index 452c358..b23992c 100644 --- a/www/activate.php +++ b/www/activate.php @@ -50,13 +50,13 @@ $avatars = array_filter($avatars); //input validation $errors = []; -if (!preg_match('#^[A-Za-z0-9 ]+$#', $input['gamerTag'])) { +if (!preg_match('#^[A-Za-z0-9 -]+$#', $input['gamerTag'])) { $errors['gamerTag'] = 'Invalid gamer tag'; } if ($input['founderFlag']) { if ($input['founderName'] === '') { $errors['founderName'] = 'Founder name missing'; - } else if (!preg_match('#^[A-Za-z0-9 ]+$#', $input['founderName'])) { + } else if (!preg_match('#^[A-Za-z0-9 -]+$#', $input['founderName'])) { $errors['founderName'] = 'Invalid founder name'; } }