X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fredirect.php;h=a5ac323cd692a9dbcf91be62d7e47760450cc2d8;hb=039fee5795aa76ba12beff9b8b3e7489c3ea381e;hp=963ce226781cafde0f8bfcce9405e130f94954c1;hpb=39c7209ff4b00b1535d87e802285cb40392011ae;p=squirrelmail.git diff --git a/src/redirect.php b/src/redirect.php index 963ce226..a5ac323c 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -50,7 +50,7 @@ sqsession_register ($base_uri, 'base_uri'); sqGetGlobalVar('login_username', $login_username); sqGetGlobalVar('secretkey', $secretkey); if(!sqGetGlobalVar('squirrelmail_language', $squirrelmail_language) || $squirrelmail_language == '') { - $squirrelmail_language = $squirrelmail_default_language; + $squirrelmail_language = $squirrelmail_default_language; } if (!sqgetGlobalVar('mailto', $mailto)) { $mailto = ''; @@ -60,12 +60,12 @@ if (!sqgetGlobalVar('mailto', $mailto)) { set_up_language($squirrelmail_language, true); /* Refresh the language cookie. */ -setcookie('squirrelmail_language', $squirrelmail_language, time()+2592000, +setcookie('squirrelmail_language', $squirrelmail_language, time()+2592000, $base_uri); if (!isset($login_username)) { include_once(SM_PATH . 'functions/display_messages.php' ); - logout_error( _("You must be logged in to access this page.") ); + logout_error( _("You must be logged in to access this page.") ); exit; } @@ -154,13 +154,13 @@ function attachment_common_parse($str, $debug) { global $attachment_common_types, $attachment_common_types_parsed; $attachment_common_types_parsed[$str] = true; - - /* - * Replace ", " with "," and explode on that as Mozilla 1.x seems to + + /* + * Replace ", " with "," and explode on that as Mozilla 1.x seems to * use "," to seperate whilst IE, and earlier versions of Mozilla use * ", " to seperate */ - + $str = str_replace( ', ' , ',' , $str ); $types = explode(',', $str); @@ -176,4 +176,4 @@ function attachment_common_parse($str, $debug) { sqsession_register($attachment_common_types, 'attachment_common_types'); } -?> +?> \ No newline at end of file