Fix comment form processing

This commit is contained in:
Flavio Copes 2017-05-11 19:42:43 +02:00
parent f1b1f74348
commit 228ac73ba8
3 changed files with 4 additions and 1 deletions

View file

@ -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);