MDL-21769 fixed input validation

This commit is contained in:
Petr Skoda
2010-03-07 15:15:59 +00:00
parent 8e37137b76
commit 99b79910fd
+2 -2
View File
@@ -111,8 +111,8 @@ switch ($action) {
error('Incorrect blog post id');
}
$post->id = $existing->id;
$post->subject = $existing->subject;
$post->summary = $existing->summary;
$post->subject = clean_text($existing->subject);
$post->summary = clean_text($existing->summary, $existing->format);
$post->publishstate = $existing->publishstate;
$post->format = $existing->format;
$post->action = $action;