diff options
author | polo <ordipolo@gmx.fr> | 2025-08-11 06:25:39 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-08-11 06:25:39 +0200 |
commit | d7468fc363b5d028db84373d4abfa6d7d19bacb9 (patch) | |
tree | 0235e6c7520bb16b939f3e753ccd45c94bfaef28 /src/controller/ArticleController.php | |
parent | 90673ef19133e037cf401773f4262ba3d7d050bf (diff) | |
download | cms-d7468fc363b5d028db84373d4abfa6d7d19bacb9.zip |
nouveau routeur! et contrôleurs et vues pour la connexion et la gestion du compte, début d'utilisation de Request et Responsemain
Diffstat (limited to 'src/controller/ArticleController.php')
-rw-r--r-- | src/controller/ArticleController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller/ArticleController.php b/src/controller/ArticleController.php index e3e4edb..3b39335 100644 --- a/src/controller/ArticleController.php +++ b/src/controller/ArticleController.php | |||
@@ -19,12 +19,12 @@ class ArticleController | |||
19 | // cas d'une nouvelle "news" | 19 | // cas d'une nouvelle "news" |
20 | if(is_array($json['content'])){ | 20 | if(is_array($json['content'])){ |
21 | foreach($json['content'] as $one_input){ | 21 | foreach($json['content'] as $one_input){ |
22 | $one_input = Security::secureString($one_input); | 22 | $one_input = Security::secureHTML($one_input); |
23 | } | 23 | } |
24 | $content = $json['content']; | 24 | $content = $json['content']; |
25 | } | 25 | } |
26 | else{ | 26 | else{ |
27 | $content = Security::secureString($json['content']); | 27 | $content = Security::secureHTML($json['content']); |
28 | } | 28 | } |
29 | 29 | ||
30 | // nouvel article | 30 | // nouvel article |