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

@ -48,7 +48,8 @@ class formAddFilm extends Form{
protected function procesaFormulario($datos){
$result = array();
$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";