Add slashes to titles.
git-svn-id: http://svn.automattic.com/wordpress/trunk@300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cf33c1e0b2
commit
317ffc9384
|
@ -127,6 +127,8 @@ case "step1":
|
||||||
$post_content = addslashes($post_content);
|
$post_content = addslashes($post_content);
|
||||||
$post_content = str_replace('<br>', '<br />', $post_content); // the XHTML touch... ;)
|
$post_content = str_replace('<br>', '<br />', $post_content); // the XHTML touch... ;)
|
||||||
|
|
||||||
|
$post_title = addslashes($post_title);
|
||||||
|
|
||||||
$result = $wpdb->query("
|
$result = $wpdb->query("
|
||||||
INSERT INTO $tableposts
|
INSERT INTO $tableposts
|
||||||
(ID, post_author,post_date,post_content,post_title,post_category)
|
(ID, post_author,post_date,post_content,post_title,post_category)
|
||||||
|
|
Loading…
Reference in New Issue