From c5ee1bd4c7cb24b680816ba686792aff0a09949c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mu=C3=B1oz=20Garcia?= <73303506+danimu03@users.noreply.github.com> Date: Thu, 27 May 2021 12:39:26 +0200 Subject: [PATCH] Add files via upload --- panel_admin/includes/formAddPromotion.php | 2 +- panel_admin/includes/formEditFilm.php | 2 +- panel_admin/includes/formEditPromotion.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panel_admin/includes/formAddPromotion.php b/panel_admin/includes/formAddPromotion.php index ea5ec37..f566cc4 100644 --- a/panel_admin/includes/formAddPromotion.php +++ b/panel_admin/includes/formAddPromotion.php @@ -49,7 +49,7 @@ class formAddPromotion extends Form{ $result = array(); $t = $this->test_input($datos['tittle']) ?? null; - $tittle = str_replace(" ", "_", $t); + $tittle = strtolower(str_replace(" ", "_", $t)); if ( empty($tittle) ) { $result['tittle'] = "El título no es válido"; diff --git a/panel_admin/includes/formEditFilm.php b/panel_admin/includes/formEditFilm.php index 0e2854b..3b17aaa 100644 --- a/panel_admin/includes/formEditFilm.php +++ b/panel_admin/includes/formEditFilm.php @@ -61,7 +61,7 @@ class formEditFilm extends Form{ } $t = $this->test_input($datos['tittle']) ?? null; - $tittle = str_replace(" ", "_", $t); + $tittle = strtolower(str_replace(" ", "_", $t)); //|| !mb_ereg_match(self::HTML5_EMAIL_REGEXP, $tittle) if ( empty($tittle) ) { $result['tittle'] = "El título no es válido"; diff --git a/panel_admin/includes/formEditPromotion.php b/panel_admin/includes/formEditPromotion.php index b195153..a030a79 100644 --- a/panel_admin/includes/formEditPromotion.php +++ b/panel_admin/includes/formEditPromotion.php @@ -58,7 +58,7 @@ class formEditPromotion extends Form{ } $t = $this->test_input($datos['tittle']) ?? null; - $tittle = str_replace(" ", "_", $t); + $tittle = strtolower(str_replace(" ", "_", $t)); if ( empty($tittle) ) { $result['tittle'] = "El título no es válido"; }