mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 17:37:25 +02:00
Sécurité
This commit is contained in:
@ -88,7 +88,7 @@ class AttributeTeam
|
||||
|
||||
public function __construct($data)
|
||||
{
|
||||
$this->team_id = $data["team"];
|
||||
$this->team_id = htmlspecialchars($data["team"]);
|
||||
$this->team = Team::fromId($this->team_id);
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ class ValidatePayment
|
||||
global $user;
|
||||
|
||||
foreach ($data as $key => $value)
|
||||
$this->$key = $value;
|
||||
$this->$key = htmlspecialchars($value);
|
||||
|
||||
$this->payment = $user->getPayment();
|
||||
}
|
||||
|
Reference in New Issue
Block a user