Compare commits
2 Commits
36b5639801
...
bd1407f8ab
| Author | SHA1 | Date | |
|---|---|---|---|
| bd1407f8ab | |||
| d44fb337e2 |
@@ -51,7 +51,7 @@ class HomeController extends Controller
|
||||
|
||||
$honeypot = $normalizeContactValue((string) ($_POST['website'] ?? ''));
|
||||
if ($honeypot !== '') {
|
||||
header('Location: ' . $_SERVER['REQUEST_URI'] . '#form-result');
|
||||
header('Location: /#form-result');
|
||||
$_SESSION['form_success'] = true;
|
||||
exit;
|
||||
} else {
|
||||
@@ -102,7 +102,7 @@ class HomeController extends Controller
|
||||
|
||||
if ($mailSent) {
|
||||
$_SESSION['last_contact_submit'] = time();
|
||||
header('Location: ' . $_SERVER['REQUEST_URI'] . '#form-result');
|
||||
header('Location: /#form-result');
|
||||
$_SESSION['form_success'] = true;
|
||||
exit;
|
||||
} else {
|
||||
@@ -111,7 +111,7 @@ class HomeController extends Controller
|
||||
}
|
||||
}
|
||||
if (!empty($formErrors)) {
|
||||
header('Location: ' . $_SERVER['REQUEST_URI'] . '#form-result');
|
||||
header('Location: /#form-result');
|
||||
$_SESSION['form_errors'] = $formErrors;
|
||||
$_SESSION['form_data'] = $formData;
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user