From 6190378ce88597758b2dcf7d800a886473886cec Mon Sep 17 00:00:00 2001 From: tokul Date: Mon, 1 Nov 2004 11:22:11 +0000 Subject: [PATCH] adding onsubmit option in order to avoid warning on SSL enabled sites. Thanks to Felix Egli for suggestion and patch. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8311 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/read_body.php b/src/read_body.php index 6331d3d4..176ed65e 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -608,17 +608,20 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed $target = ''; $on_click=''; $method='method="post" '; + $onsubmit=''; if ($compose_new_win == '1') { if ( $javascript_on ) { $on_click=' onclick="comp_in_new_form(\''.$comp_uri.'\', this, this.form)"'; $comp_uri = 'javascript:void(0)'; $method='method="get" '; + $onsubmit = 'onsubmit="return false" '; } else { $target = 'target="_blank"'; } } - $menu_row .= "\n".'
'."\n"; + $menu_row .= "\n".''."\n"; // If Draft folder - create Resume link if (($mailbox == $draft_folder) && ($save_as_draft)) { -- 2.25.1