From 0be2024f5f184227a3c951b68eb2d51e1406efe6 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 7 Feb 2007 23:19:21 +0000 Subject: [PATCH] Onclick handler should not be submitted as HTML but only as the onclick contents - fixed. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12241 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/read_body.php | 2 +- templates/default/read_menubar_buttons.tpl | 12 ++++++------ templates/default_advanced/read_menubar_buttons.tpl | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/read_body.php b/src/read_body.php index 2f653e68..51497411 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -563,7 +563,7 @@ function formatMenubar($aMailbox, $passed_id, $passed_ent_id, $message, $removed $compose_height = '550'; } if ( checkForJavascript() ) { - $on_click=' onclick="comp_in_new_form(\''.$comp_uri.'\', this, this.form,'. $compose_width .',' . $compose_height .')"'; + $on_click='comp_in_new_form(\''.$comp_uri.'\', this, this.form,'. $compose_width .',' . $compose_height .')'; $comp_uri = 'javascript:void(0)'; $method='get'; $onsubmit = 'return false'; diff --git a/templates/default/read_menubar_buttons.tpl b/templates/default/read_menubar_buttons.tpl index e94b8052..4f0e4a6f 100644 --- a/templates/default/read_menubar_buttons.tpl +++ b/templates/default/read_menubar_buttons.tpl @@ -23,7 +23,7 @@ * $form_onsubmit - The value of the
's onsubmit handler (optional, may be blank) * $compose_href - Base URL to forward, reply, etc. Note that a specific action * must also be given by the form or in this URL. - * $on_click - Onclick event string for all buttons + * $button_onclick - Onclick event string for all buttons * $forward_as_attachment_enabled - boolean TRUE if forwarding as attachments * has been enabled. * $can_resume_draft - boolean TRUE if the "resume draft" is legitimate for @@ -87,18 +87,18 @@ if ($nav_on_top) { - " />  + " onclick="" />  - " />  + " onclick="" />  - " />  - " /> + " onclick="" />  + " onclick="" />   |   - " /> + " onclick="" /> diff --git a/templates/default_advanced/read_menubar_buttons.tpl b/templates/default_advanced/read_menubar_buttons.tpl index 718df702..c2566460 100644 --- a/templates/default_advanced/read_menubar_buttons.tpl +++ b/templates/default_advanced/read_menubar_buttons.tpl @@ -23,7 +23,7 @@ * $form_onsubmit - The value of the 's onsubmit handler (optional, may be blank) * $compose_href - Base URL to forward, reply, etc. Note that a specific action * must also be given by the form or in this URL. - * $on_click - Onclick event string for all buttons + * $button_onclick - Onclick event string for all buttons * $forward_as_attachment_enabled - boolean TRUE if forwarding as attachments * has been enabled. * $can_resume_draft - boolean TRUE if the "resume draft" is legitimate for @@ -103,18 +103,18 @@ if ($nav_on_top) { - " />  + " onclick="" />  - " />  + " onclick="" />  - " />  - " /> + " onclick="" />  + " onclick="" />   |   - " /> + " onclick="" /> -- 2.25.1