Fixes _(Unknown sender) from being html encoded
[squirrelmail.git] / include / validate.php
index b399d7c21a6ab56d3663320b83a813df7c10e6a5..3821345822bcb266efd690c28c20e3910652e633 100644 (file)
@@ -39,6 +39,7 @@ $theme=array();
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'class/mime.class.php');
+require_once(SM_PATH . 'functions/global.php');
 require_once(SM_PATH . 'functions/strings.php');
 require_once(SM_PATH . 'config/config.php');
 
@@ -49,11 +50,10 @@ if(isset($session_name) && $session_name) {
     ini_set('session.name' , 'SQMSESSID');
 }
 
-session_start();
+sqsession_is_active();
 
 require_once(SM_PATH . 'functions/i18n.php');
 require_once(SM_PATH . 'functions/auth.php');
-require_once(SM_PATH . 'functions/global.php');
 
 is_logged_in();