#18 HTML Entities vanish when editing post

closed-fixed
nobody
5
2006-07-05
2006-07-04
JMG
No

To reproduce the bug do the following:

1. Create a new post with a this text in the body: "&".

2. It correctly shows as "&" when viewing the post. If
you view the source for index.php you see that the
entity is still there: "&"

3. Now edit the post. Dont write anything, just open
the edit page and save.

4. View the post again and look at the source. The
entity has disappeared.

The solution: In post_edit.php add the following at
line 187: $post['post_mail_body'] =
htmlentities($post['post_mail_body']);

/JMG

Discussion

  • Mark Wallis (aka serialmonkey)

    Logged In: YES
    user_id=342445

    Thanks - I've commited the fix to CVS.

     
  • Mark Wallis (aka serialmonkey)

    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks