diff options
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 |