// 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")
**
**/
+ // 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, ".");
echo _("You need a valid user and password to access this page!");
exit;
}
-?>
-<HTML>
-<FONT FACE="Arial,Helvetica">
-<?
+
include("../config/config.php");
include("../functions/imap.php");
include("../functions/strings.php");
include("../functions/mime.php");
include("../functions/mailbox_display.php");
include("../functions/display_messages.php");
-
+?>
+<HTML>
+<FONT FACE="Arial,Helvetica">
+<?
/////////////////////////////////////////////////////////////////////////////////
//
// incoming variables from URL: