Skip to content
Browse files

MDL-21769 fixed input validation

  • Loading branch information...
1 parent f742997 commit 3d2d9e65276e03182173c6fdda52027894cd6e6f @skodak skodak committed Mar 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 blog/edit.php
View
4 blog/edit.php
@@ -108,8 +108,8 @@
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;

0 comments on commit 3d2d9e6

Please sign in to comment.
Something went wrong with that request. Please try again.