Skip to content

Commit

Permalink
CSRF issue in the plugin 'Blog'
Browse files Browse the repository at this point in the history
  • Loading branch information
jangaraev committed Jun 30, 2017
1 parent 023dffe commit 4abfe96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/blog/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
$messages[] = iaLanguage::get('title_is_empty');
}

$entry['body'] = $_POST['body'];
$entry['body'] = iaUtil::safeHTML($_POST['body']);
utf8_is_valid($entry['body']) || $entry['body'] = utf8_bad_replace($entry['body']);

if (empty($entry['body'])) {
Expand Down

0 comments on commit 4abfe96

Please sign in to comment.