diff --git a/entities/Project.php b/entities/Project.php index 26c804d..5071b57 100644 --- a/entities/Project.php +++ b/entities/Project.php @@ -56,7 +56,7 @@ class Project extends Mother{ * @return string tite du projet */ public function getTitle(){ - return $this->_title; + return $this->nettoyer($this->_title); } /** @@ -72,7 +72,7 @@ class Project extends Mother{ * @return string description du projet */ public function getDescription(){ - return $this->_description; + return $this->nettoyer($this->_description) ; } /** @@ -105,7 +105,7 @@ class Project extends Mother{ * @return string contenu du projet */ public function getContent(){ - return $this->_content; + return $this->nettoyer($this->_content); } /** diff --git a/entities/User.php b/entities/User.php index 6f57577..1eee5be 100644 --- a/entities/User.php +++ b/entities/User.php @@ -50,7 +50,7 @@ * @return string le nom de l'utilisateur */ public function getName():string{ - return $this->_name; + return $this->nettoyer($this->_name); } /** @@ -66,7 +66,7 @@ * @return string le prénom de l'utilisateur */ public function getFirstname():string{ - return $this->_firstname; + return $this->nettoyer($this->_firstname); } /** @@ -82,7 +82,7 @@ * @return string le pseudo de l'utilisateur */ public function getPseudo():string{ - return $this->_pseudo; + return $this->nettoyer($this->_pseudo); } /** @@ -154,7 +154,7 @@ * @return string le numéro de téléphone de l'utilisateur */ public function getPhone():string{ - return $this->_phone; + return $this->nettoyer($this->_phone); } /** @@ -170,7 +170,7 @@ * @return string la profession de l'utilisateur */ public function getWork():string{ - return $this->_work; + return $this->nettoyer($this->_work); } /** @@ -202,7 +202,7 @@ * @return string la localisation de l'utilisateur */ public function getLocation():string{ - return $this->_location; + return $this->nettoyer($this->_location); } /** @@ -218,7 +218,7 @@ * @return string la description de l'utilisateur */ public function getDescription():string{ - return $this->_description; + return $this->nettoyer($this->_description); } /** diff --git a/uploads/profiles/69a421bf7770c.webp b/uploads/profiles/69a421bf7770c.webp new file mode 100644 index 0000000..db8dfc7 Binary files /dev/null and b/uploads/profiles/69a421bf7770c.webp differ diff --git a/uploads/projects/69a41ebf52f1a.webp b/uploads/projects/69a41ebf52f1a.webp new file mode 100644 index 0000000..e2863da Binary files /dev/null and b/uploads/projects/69a41ebf52f1a.webp differ diff --git a/uploads/projects/69a41f1c43371.webp b/uploads/projects/69a41f1c43371.webp new file mode 100644 index 0000000..951c5d5 Binary files /dev/null and b/uploads/projects/69a41f1c43371.webp differ diff --git a/views/project_display.tpl b/views/project_display.tpl index d3fa773..843512c 100644 --- a/views/project_display.tpl +++ b/views/project_display.tpl @@ -30,7 +30,7 @@

Description

{$objProject->getDescription()}

-
+
{$objProject->getContent()}