Skip to content

Commit

Permalink
prevent a </textarea> tag in the blog text from screwing up the form
Browse files Browse the repository at this point in the history
  • Loading branch information
wfraser committed Jul 9, 2011
1 parent 6753ab0 commit 66babbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cp_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@

$preview = skinvoodoo("controlpanel_write", "preview_topic", array("text" => output_topic_text($topic['text'])));

$topic['text'] = str_replace("</textarea>", "&lt;/textarea>", $topic['text']);

$body = skinvoodoo(
"controlpanel_edit", "editform",
array(
Expand Down

0 comments on commit 66babbb

Please sign in to comment.