diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php index c78e39d..710febc 100644 --- a/content/vendor/form-comments/commentsubmit.php +++ b/content/vendor/form-comments/commentsubmit.php @@ -23,8 +23,8 @@ if(empty($_POST['name']) || !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) { - // header( "Location: {$return_url}"); - header( "Location: ../{$return_url}"); + // header( "Location: ../{$return_url}"); # devel + header( "Location: {$return_url}"); # prod } else { $DATE_FORMAT = "Y-m-d H:i"; @@ -35,6 +35,9 @@ if(empty($_POST['name']) || $comment = strip_tags(utf8_decode(htmlspecialchars($_POST['comment']))); $email_address = strip_tags(htmlspecialchars($_POST['email'])); + // article + $postID = str_replace('/','',$post_id); + //slug $nslug = seourl($name); $fslug = date("Ymd-H:i:s"); @@ -50,11 +53,11 @@ EOT; $email_body = <<