From: jmunro Date: Tue, 14 May 2002 15:13:29 +0000 (+0000) Subject: fix for text box focus on read_body.php. Ryan, adding a simple case block causes... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=2e52e4a2c90396b3ac469d5f7e2baa16df6c304e;hp=ce9f808b1830796b415c1607714d8be66b7c7efe fix for text box focus on read_body.php. Ryan, adding a simple case block causes errors with E_ALL and breaks the 'compose in new window' option when launched from read_body.php. This fix disables the text box focus without warnings or breakage :) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2821 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index dc33315c..03a71fe7 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -60,6 +60,29 @@ function displayPageHeader($color, $mailbox, $xtra='') { Locate the first displayable form element */ switch ( $module ) { + case 'src/read_body.php': + if ($compose_new_win == '1') { + if (!preg_match("/^[0-9]{3,4}$/", $compose_width)) { + $compose_width = '640'; + } + if (!preg_match("/^[0-9]{3,4}$/", $compose_height)) { + $compose_height = '550'; + } + $js = "\n".'\n"; + displayHtmlHeader ('Squirrelmail', $js); + } + displayHtmlHeader(); + $onload = ''; + break; default: $js = '