This commit is contained in:
John Bintz 2009-11-25 16:49:47 -05:00
parent 1a83597ba5
commit 445c109b0d
1 changed files with 4 additions and 3 deletions

View File

@ -238,8 +238,9 @@ function generate_post_hash($filename_date, $filename_converted_title) {
$override_title = $_POST['override-title-to-use'];
$tags = $_POST['tags'];
if (get_magic_quotes_gpc()) {
$override_title = stripslashes($override_title);
$tags = stripslashes($tags);
foreach (array('override_title', 'tags', 'post_content') as $field) {
${$field} = stripslashes(${$field});
}
}
$post_title = !empty($override_title) ? $override_title : $filename_converted_title;