fixed redirect, so that it does not display credentials after editing

main
fuzzykitten 2025-04-11 11:47:58 -04:00
parent 49cca1d00e
commit 6c24e492d7
1 changed files with 2 additions and 1 deletions

View File

@ -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'];