Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fdbd16
)
MDL-21769 fixed input validation
author
Petr Skoda
<skodak@moodle.org>
Sun, 7 Mar 2010 15:16:38 +0000
(15:16 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Sun, 7 Mar 2010 15:16:38 +0000
(15:16 +0000)
blog/edit.php
patch
|
blob
|
blame
|
history
diff --git
a/blog/edit.php
b/blog/edit.php
index
82fd010
..
d35cb83
100755
(executable)
--- a/
blog/edit.php
+++ b/
blog/edit.php
@@
-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