FS#139
This commit is contained in:
parent
1a83597ba5
commit
445c109b0d
|
@ -238,8 +238,9 @@ function generate_post_hash($filename_date, $filename_converted_title) {
|
||||||
$override_title = $_POST['override-title-to-use'];
|
$override_title = $_POST['override-title-to-use'];
|
||||||
$tags = $_POST['tags'];
|
$tags = $_POST['tags'];
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
$override_title = stripslashes($override_title);
|
foreach (array('override_title', 'tags', 'post_content') as $field) {
|
||||||
$tags = stripslashes($tags);
|
${$field} = stripslashes(${$field});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_title = !empty($override_title) ? $override_title : $filename_converted_title;
|
$post_title = !empty($override_title) ? $override_title : $filename_converted_title;
|
||||||
|
@ -326,7 +327,7 @@ function cpm_read_comics_folder() {
|
||||||
|
|
||||||
if ($glob_results === false) {
|
if ($glob_results === false) {
|
||||||
//$cpm_config->messages[] = "FYI: glob({$cpm_config->path}/*) returned false. This can happen on some PHP installations if you have no files in your comic directory. This message will disappear once you upload a comic to your site.";
|
//$cpm_config->messages[] = "FYI: glob({$cpm_config->path}/*) returned false. This can happen on some PHP installations if you have no files in your comic directory. This message will disappear once you upload a comic to your site.";
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$filtered_glob_results = array();
|
$filtered_glob_results = array();
|
||||||
|
|
Loading…
Reference in New Issue