MDL-21769 fixed input validation
This commit is contained in:
@@ -87,6 +87,9 @@ if ($id) {
|
||||
print_error('notallowedtoedit', 'blog');
|
||||
}
|
||||
$userid = $entry->userid;
|
||||
$entry->subject = clean_text($entry->subject);
|
||||
$entry->summary = clean_text($entry->summary, $entry->format);
|
||||
|
||||
} else {
|
||||
if (!has_capability('moodle/blog:create', $sitecontext)) {
|
||||
print_error('noentry', 'blog'); // manageentries is not enough for adding
|
||||
|
||||
Reference in New Issue
Block a user