Skip to content

Commit

Permalink
Fix movie id validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrocraeye authored and carakas committed Nov 12, 2023
1 parent 75b2c0b commit 804e3b6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -65,7 +65,7 @@ protected function getMovieId(): string
}

// Make sure the movie id is valid
if (!preg_match('/^[a-zA-Z]+[a-zA-Z0-9._]+$/', (string) $movieId)) {
if (!preg_match('/^[a-zA-Z0-9._-]+$/', (string) $movieId)) {
throw new AjaxExitException(Language::err('InvalidValue'));
}

Expand Down

0 comments on commit 804e3b6

Please sign in to comment.