Fix comment form processing
This commit is contained in:
parent
f1b1f74348
commit
228ac73ba8
3 changed files with 4 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class CommentsPlugin extends Plugin
|
|||
|
||||
switch ($action) {
|
||||
case 'addComment':
|
||||
$post = !empty($_POST) ? $_POST : [];
|
||||
$post = isset($_POST['data']) ? $_POST['data'] : [];
|
||||
|
||||
$lang = filter_var(urldecode($post['lang']), FILTER_SANITIZE_STRING);
|
||||
$path = filter_var(urldecode($post['path']), FILTER_SANITIZE_STRING);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue