replaced strip_tags() by htmlspecialchars() in most of POST variables
added stripslashes() to POST variables while form is not sent
This commit is contained in:
1 parent
9bae4628a0
commit
5899fffb29
4 files changed
+49
-54
No files matched your search
@@ -265,7 +265,7 @@ class MainView extends View
|
||||
|
||||
$this->assign('post', $_POST['post']);
|
||||
if (isset($_POST['preview']))
|
||||
$this->assign('preview', addslashes(htmlspecialchars($_POST['post'])));
|
||||
$this->assign('preview', true);
|
||||
|
||||
if ($type == POSTING_NEWTOPIC || $type == POSTING_EDITTOPIC)
|
||||
$this->assign('topic', $_POST['topic']);
|
||||
|
||||
Reference in new issue
Block a user