From 3d6152a737af6394aa4f22eef4f96788be796439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 18 Nov 2019 13:08:05 -0500 Subject: [PATCH] fix form-comments --- .../vendor/form-comments/commentsubmit.php | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) 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 = <<