From 6c24e492d7bec6f26f5617efd46ba9d24bbe3276 Mon Sep 17 00:00:00 2001 From: fuzzykitten Date: Fri, 11 Apr 2025 11:47:58 -0400 Subject: [PATCH] fixed redirect, so that it does not display credentials after editing --- opt/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opt/post.php b/opt/post.php index 859a278..c023f1d 100644 --- a/opt/post.php +++ b/opt/post.php @@ -65,7 +65,8 @@ function answer_redirect($sub, $css, $post_id, $settings) } if ( ( $settings['enable_tripcodes'] == TRUE ) && - ( $_POST['combination'] == $_POST['combination_hidden'] ) ) { + ( $_POST['combination'] == $_POST['combination_hidden'] ) && + ( !empty($_POST['combination']) ) ) { header( "refresh:10;url=/s/$sub/$css$random_string" ); // we wait 10 seconds with the redirection $credentials = $_POST['combination'];