projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eliminate notice and unneccessary html when td_str not set.
[squirrelmail.git]
/
src
/
redirect.php
diff --git
a/src/redirect.php
b/src/redirect.php
index a071a71cba0d569775e62f4714bc57bb8e5e9258..9a9a0086d37dce76a0ba4077f8eb2bf73a87c454 100644
(file)
--- a/
src/redirect.php
+++ b/
src/redirect.php
@@
-4,7
+4,7
@@
* redirect.php
* Derived from webmail.php by Ralf Kraudelt <kraude@wiwi.uni-rostock.de>
*
* redirect.php
* Derived from webmail.php by Ralf Kraudelt <kraude@wiwi.uni-rostock.de>
*
-* Copyright (c) 1999-200
4
The SquirrelMail Project Team
+* Copyright (c) 1999-200
5
The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Prevents users from reposting their form data after a successful logout.
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Prevents users from reposting their form data after a successful logout.
@@
-60,12
+60,12
@@
if (!sqgetGlobalVar('mailto', $mailto)) {
set_up_language($squirrelmail_language, true);
/* Refresh the language cookie. */
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' );
$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;
}
exit;
}
@@
-141,7
+141,7
@@
if ( sqgetGlobalVar('session_expired_location', $session_expired_location, SQ_SE
}
if($mailto != '') {
$redirect_url = $location . '/webmail.php?right_frame=compose.php&mailto=';
}
if($mailto != '') {
$redirect_url = $location . '/webmail.php?right_frame=compose.php&mailto=';
- $redirect_url .=
$mailto
;
+ $redirect_url .=
urlencode($mailto)
;
}
/* Write session data and send them off to the appropriate page. */
}
/* Write session data and send them off to the appropriate page. */
@@
-154,13
+154,13
@@
function attachment_common_parse($str, $debug) {
global $attachment_common_types, $attachment_common_types_parsed;
$attachment_common_types_parsed[$str] = true;
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
*/
* use "," to seperate whilst IE, and earlier versions of Mozilla use
* ", " to seperate
*/
-
+
$str = str_replace( ', ' , ',' , $str );
$types = explode(',', $str);
$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');
}
sqsession_register($attachment_common_types, 'attachment_common_types');
}
-?>
\ No newline at end of file
+?>