While you can add the fix to get it to work with webmail in cPanel 11 from the Sourceforge site, I've decided to go ahead and post the correction here (starts at line 218):
PHP Code:
while (true) {
$data = fgets($server, 10240); // FIXME: Can we optimize here with another buffer-size?
if (strlen(trim($data))==0) break;
// Fix hostname in redirects, cookies...
$data = preg_replace('_([^.]*)/webmail_', '$1/webmail_', $data); // line added to fix webmail in cPanel 11
$data = str_replace(
array('localhost:2095', 'localhost:2082', 'localhost:2086'),
array($webmailhost, $cpanelhost, $whmhost),
$data);
if (substr($data, 0, 11) == 'Set-Cookie:') {
$data = str_replace(
'; domain=localhost',
'; domain='.$_SERVER['HTTP_HOST'],
$data);
}
header($data, false);
}
Now I can access both my cpanel and webmail from work.
