From 441392668b621f16e35cf96abf288e0ce0c579a2 Mon Sep 17 00:00:00 2001 From: gustavf Date: Mon, 28 Feb 2000 14:47:23 +0000 Subject: [PATCH] Moved some output, so that page_header.php can send headers. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@248 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/i18n.php | 2 +- functions/page_header.php | 4 ++++ src/right_main.php | 10 +++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/functions/i18n.php b/functions/i18n.php index 779513f1..0a08886b 100644 --- a/functions/i18n.php +++ b/functions/i18n.php @@ -17,7 +17,7 @@ // All HTML special characters are 7 bit and can be replaced first $string = htmlspecialchars ($string); - $charset = strolower($charset); + $charset = strtolower($charset); if (ereg("iso-8859-(.*)", $charset, $res)) { if ($res[1] == "1") diff --git a/functions/page_header.php b/functions/page_header.php index 324206b5..cd4ba6ae 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -6,6 +6,10 @@ ** **/ + // This is done to ensure that the character set is correct when + // receiving input from HTTP forms + header ("Content-Type: text/html; charset=iso-8859-1"); + function displayPageHeader($color, $mailbox) { /** Here is the header and wrapping table **/ $shortBoxName = readShortMailboxName($mailbox, "."); diff --git a/src/right_main.php b/src/right_main.php index ddd01e4d..b87ea8d4 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -19,10 +19,7 @@ echo _("You need a valid user and password to access this page!"); exit; } -?> - - - + + +