X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fredirect.php;h=5658995da244fcd51c05518da4e05da29b1e9b3a;hb=ce20ea9260adccbf62ca895c7e372947c3007f21;hp=89529f11559359c49168328ac30e9eb5d4dc412d;hpb=db479313da9b4405f8744fb9233e08fe57a1a033;p=squirrelmail.git diff --git a/src/redirect.php b/src/redirect.php index 89529f11..5658995d 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -49,6 +49,9 @@ sqGetGlobalVar('js_autodetect_results', $js_autodetect_results); if(!sqGetGlobalVar('squirrelmail_language', $squirrelmail_language) || $squirrelmail_language == '') { $squirrelmail_language = $squirrelmail_default_language; } +if (!sqgetGlobalVar('mailto', $mailto)) { + $mailto = ''; +} /* end of get globals */ @@ -147,6 +150,10 @@ if ( sqgetGlobalVar('session_expired_location', $session_expired_location, SQ_SE } unset($session_expired_location); } +if($mailto != '') { + $redirect_url = 'webmail.php?right_frame=compose.php&mailto='; + $redirect_url .= $mailto; +} /* Write session data and send them off to the appropriate page. */ session_write_close();