MDL-21769 fixed input validation

This commit is contained in:
Petr Skoda
2010-03-07 15:16:38 +00:00
parent 6fdbd16203
commit 32148582ff
+3
View File
@@ -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