]> bicyclesonthemoon.info Git - ott/bsta/commitdiff
don't include empty password in words links v1.2.7
authorb <rowerynaksiezycu@gmail.com>
Mon, 12 Feb 2024 23:30:38 +0000 (23:30 +0000)
committerb <rowerynaksiezycu@gmail.com>
Mon, 12 Feb 2024 23:30:38 +0000 (23:30 +0000)
bsta_lib.1.pm

index 8add7fab9d0cd622bf5854fe0f95d0bbf6e11de4..0e451031d74c71c4bdf69456721523c0791ddfa0 100644 (file)
@@ -1679,7 +1679,6 @@ sub print_comments {
                                        'query' => {
                                                'f' => $frame,
                                                'quote' => $ID,
-                                               'p' => ($password_ok ? $settings->{'password'} : '')
                                        }
                                }
                        );
@@ -1691,7 +1690,6 @@ sub print_comments {
                                                'edit' => $ID,
                                                'key' => $post_data{'key'},
                                                'username' => $post_data{'name'},
-                                               'p' => ($password_ok ? $settings->{'password'} : '')
                                        }
                                }
                        );
@@ -1703,10 +1701,14 @@ sub print_comments {
                                                'remove' => $ID,
                                                'key' => $post_data{'key'},
                                                'username' => $post_data{'name'},
-                                               'p' => ($password_ok ? $settings->{'password'} : '')
                                        }
                                }
                        );
+                       if ($password_ok) {
+                               $quote_url  = merge_url($quote_url , {'query' => $password_query, 'append_query' => 1, 'preserve_fragment' => 1});
+                               $edit_url   = merge_url($edit_url  , {'query' => $password_query, 'append_query' => 1, 'preserve_fragment' => 1});
+                               $remove_url = merge_url($remove_url, {'query' => $password_query, 'append_query' => 1, 'preserve_fragment' => 1});
+                       }
                        
                        my $_ID         = html_entity_encode_dec($ID, 1);
                        my $_name       = html_entity_encode_dec($post_data{'name'}, 1);