fix login for hosts running on port 80

This commit is contained in:
Frank Karlitschek 2012-06-05 15:26:31 +02:00
parent 7621559d00
commit e747fd794e
1 changed files with 2 additions and 2 deletions

View File

@ -370,8 +370,8 @@ class OC{
$refererhost=parse_url($referer);
if(isset($refererhost['host'])) $refererhost=$refererhost['host']; else $refererhost='';
$server=OC_Helper::serverHost();
$serverhost=parse_url($server);
if(isset($serverhost['host'])) $serverhost=$serverhost['host']; else $serverhost='';
$serverhost=explode(':',$server);
$serverhost=$serverhost['0'];
if(!self::$CLI){
if(($_SERVER['REQUEST_METHOD']=='POST') and ($refererhost<>$serverhost)) {
$url = OC_Helper::serverProtocol().'://'.$server.OC::$WEBROOT.'/index.php';