Skip to content

Commit

Permalink
Add some sanitization
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Dec 27, 2007
1 parent c190d78 commit a12c5d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wp-mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@

do_action('publish_phone', $post_ID);

echo "\n<p><b>Author:</b> $post_author</p>";
echo "\n<p><b>Posted title:</b> $post_title<br />";
echo "\n<b>Posted content:</b><br /><pre>".$content.'</pre></p>';
echo "\n<p><b>Author:</b> " . wp_specialchars($post_author) . "</p>";
echo "\n<p><b>Posted title:</b> " . sanitize_post_field('post_title', $post_title, $post_ID, 'display') . "<br />";
echo "\n<b>Posted content:</b><br /><pre>". sanitize_post_field('post_content', $post_content, $post_ID, 'display') . '</pre></p>';

if(!$pop3->delete($i)) {
echo '<p>Oops '.wp_specialchars($pop3->ERROR).'</p></div>';
Expand Down

0 comments on commit a12c5d8

Please sign in to comment.