* SquirrelMail version number -- DO NOT CHANGE
*/
global $version;
-$version = '1.2.7 [CVS]';
+$version = '1.3.0 [CVS-DEVEL]';
/**
* Wraps text at $wrap characters
/* Go to the next line if we have more to process */
if ($i < count($words)) {
- $line .= "\n" . $beginning_spaces;
+ $line .= "\n";
}
}
}
function get_location () {
global $PHP_SELF, $SERVER_NAME, $HTTP_HOST, $SERVER_PORT,
- $HTTP_SERVER_VARS;
+ $HTTP_SERVER_VARS, $imap_server_type;
/* Get the path, handle virtual directories */
$path = substr(php_self(), 0, strrpos(php_self(), '/'));
}
}
+ /* this is a workaround for the weird macosx caching that
+ causes Apache to return 16080 as the port number, which causes
+ SM to bail */
+
+ if ($imap_server_type == 'macosx' && $port == ':16080') {
+ $port = '';
+ }
+
/* Fallback is to omit the server name and use a relative */
/* URI, although this is not RFC 2616 compliant. */
return ($host ? $proto . $host . $port . $path : $path);