This commit is contained in:
Daniel Muñoz Garcia
2021-05-27 12:21:41 +02:00
committed by GitHub
parent 05ae838f03
commit bb784490e5
4 changed files with 8 additions and 5 deletions

View File

@ -60,7 +60,8 @@ class formEditFilm extends Form{
$result[] = "La pelicula seleccionada no existe.";
}
$tittle = $this->test_input($datos['tittle']) ?? null;
$t = $this->test_input($datos['tittle']) ?? null;
$tittle = str_replace(" ", "_", $t);
//|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $tittle)
if ( empty($tittle) ) {
$result['tittle'] = "El título no es válido";