Minor
Always
Apache/2.2.11 Server, PHP5.2.8-r2
0.0902
2009-12-21
- Fresh install of 902, enable USE_MOD_REWRITE in customize.inc.php and apply the apache configuration.
- Create a new person with account and email address. Logout.
The links in the notification emails are missing SELF_URL. The code that attempts to initialize SELF_URL automatically checks for "/index.php" in SCRIPT_NAME. If rewriting is on that won't match
from conf/conf.inc.php
/**
* try to figure out url installation for links from notification mails
*/
if(isset($_SERVER['SCRIPT_NAME']) && $_SERVER['HTTP_HOST'] && preg_match("/\/index\.php/",$_SERVER['SCRIPT_NAME'])) {
$url= asCleanString($_SERVER['HTTP_HOST'] .$_SERVER['SCRIPT_NAME']);
confChange('SELF_URL', $url);
}
+
elseif( $_SERVER['HTTP_HOST'] )
{
$url = asCleanString($_SERVER['HTTP_HOST']);
confChange('SELF_URL', $url);
}