From c8dc86c977350cb16f70399c55615e6b13c7c182 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 10 Jul 2007 19:21:46 +0000 Subject: [PATCH] Try to tag all the places that need to be fixed (no echoing direct from core). We need to do this in all the rest of the core files git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12525 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/compose.php b/src/compose.php index a81e2e2a..4bc00a2f 100644 --- a/src/compose.php +++ b/src/compose.php @@ -434,6 +434,7 @@ if ($draft) { if ( !isset($pageheader_sent) || !$pageheader_sent ) { Header("Location: $location/compose.php?saved_draft=yes&session=$composesession"); } else { +//FIXME: DON'T ECHO HTML FROM CORE! echo '

' . _("Return") . '
'; @@ -444,6 +445,7 @@ if ($draft) { Header("Location: $location/right_main.php?mailbox=" . urlencode($draft_folder) . "&startMessage=1¬e=".urlencode($draft_message)); } else { +//FIXME: DON'T ECHO HTML FROM CORE! echo '

' @@ -544,6 +546,7 @@ if ($send) { if ( !isset($pageheader_sent) || !$pageheader_sent ) { Header("Location: $location/compose.php?mail_sent=$mail_sent"); } else { +//FIXME: DON'T ECHO HTML FROM CORE! echo '

' . _("Return") . '
'; @@ -554,6 +557,7 @@ if ($send) { Header("Location: $location/right_main.php?mailbox=$urlMailbox". "&startMessage=$startMessage&mail_sent=$mail_sent"); } else { +//FIXME: DON'T ECHO HTML FROM CORE! echo '

" @@ -1099,6 +1103,7 @@ function showInputForm ($session, $values=false) { } if ($use_javascript_addr_book) { +//FIXME: NO HTML IN CORE! echo "\n". '\n\n"; } +//FIXME: NO HTML IN CORE! echo "\n" . '
\n"; +//FIXME: DON'T ECHO HTML FROM CORE! echo addHidden('startMessage', $startMessage); if ($action == 'draft') { +//FIXME: DON'T ECHO HTML FROM CORE! echo addHidden('delete_draft', $passed_id); } if (isset($delete_draft)) { +//FIXME: DON'T ECHO HTML FROM CORE! echo addHidden('delete_draft', $delete_draft); } if (isset($session)) { +//FIXME: DON'T ECHO HTML FROM CORE! echo addHidden('session', $session); } if (isset($passed_id)) { +//FIXME: DON'T ECHO HTML FROM CORE! echo addHidden('passed_id', $passed_id); } @@ -1174,6 +1187,7 @@ function showInputForm ($session, $values=false) { } if ($location_of_buttons == 'top') { +//FIXME: DON'T ECHO HTML FROM CORE! showComposeButtonRow(); } @@ -1197,6 +1211,7 @@ function showInputForm ($session, $values=false) { $oTemplate->display('compose_header.tpl'); if ($location_of_buttons == 'between') { +//FIXME: DON'T ECHO HTML FROM CORE! showComposeButtonRow(); } @@ -1239,6 +1254,7 @@ function showInputForm ($session, $values=false) { $oTemplate->display ('compose_body.tpl'); if ($location_of_buttons == 'bottom') { +//FIXME: DON'T ECHO HTML FROM CORE! showComposeButtonRow(); } -- 2.25.1