plus de sécurité et jolie beau

This commit is contained in:
Yasder5 2026-03-01 12:29:05 +01:00
parent 1deedf79a8
commit 18d74fc687
6 changed files with 11 additions and 11 deletions

View file

@ -56,7 +56,7 @@ class Project extends Mother{
* @return string tite du projet * @return string tite du projet
*/ */
public function getTitle(){ public function getTitle(){
return $this->_title; return $this->nettoyer($this->_title);
} }
/** /**
@ -72,7 +72,7 @@ class Project extends Mother{
* @return string description du projet * @return string description du projet
*/ */
public function getDescription(){ public function getDescription(){
return $this->_description; return $this->nettoyer($this->_description) ;
} }
/** /**
@ -105,7 +105,7 @@ class Project extends Mother{
* @return string contenu du projet * @return string contenu du projet
*/ */
public function getContent(){ public function getContent(){
return $this->_content; return $this->nettoyer($this->_content);
} }
/** /**

View file

@ -50,7 +50,7 @@
* @return string le nom de l'utilisateur * @return string le nom de l'utilisateur
*/ */
public function getName():string{ public function getName():string{
return $this->_name; return $this->nettoyer($this->_name);
} }
/** /**
@ -66,7 +66,7 @@
* @return string le prénom de l'utilisateur * @return string le prénom de l'utilisateur
*/ */
public function getFirstname():string{ public function getFirstname():string{
return $this->_firstname; return $this->nettoyer($this->_firstname);
} }
/** /**
@ -82,7 +82,7 @@
* @return string le pseudo de l'utilisateur * @return string le pseudo de l'utilisateur
*/ */
public function getPseudo():string{ 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 * @return string le numéro de téléphone de l'utilisateur
*/ */
public function getPhone():string{ public function getPhone():string{
return $this->_phone; return $this->nettoyer($this->_phone);
} }
/** /**
@ -170,7 +170,7 @@
* @return string la profession de l'utilisateur * @return string la profession de l'utilisateur
*/ */
public function getWork():string{ public function getWork():string{
return $this->_work; return $this->nettoyer($this->_work);
} }
/** /**
@ -202,7 +202,7 @@
* @return string la localisation de l'utilisateur * @return string la localisation de l'utilisateur
*/ */
public function getLocation():string{ public function getLocation():string{
return $this->_location; return $this->nettoyer($this->_location);
} }
/** /**
@ -218,7 +218,7 @@
* @return string la description de l'utilisateur * @return string la description de l'utilisateur
*/ */
public function getDescription():string{ public function getDescription():string{
return $this->_description; return $this->nettoyer($this->_description);
} }
/** /**

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View file

@ -30,7 +30,7 @@
<h4 class="border-bottom pb-2">Description</h4> <h4 class="border-bottom pb-2">Description</h4>
<p class="lead">{$objProject->getDescription()}</p> <p class="lead">{$objProject->getDescription()}</p>
<div class="mt-4"> <div class="mt-4" style="white-space: pre-wrap;">
{$objProject->getContent()} {$objProject->getContent()}
</div> </div>
</div> </div>