Skip to content

Commit

Permalink
Fixed issue #7108: 'hostinfo' parameter in config.php not working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 22, 2012
1 parent 26f4206 commit 214fdd5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions application/core/LSYii_Application.php
Expand Up @@ -78,8 +78,12 @@ public function __construct($config = null)
}
}

$config['components']['request']=array(
'class'=>'LSHttpRequest',
if (!isset($config['components']['request']))
{
$config['components']['request']=array();
}
$config['components']['request']=array_merge_recursive($config['components']['request'],array(
'class'=>'HttpRequest',
'noCsrfValidationRoutes'=>array(
// '^services/wsdl.*$' // Set here additional regex rules for routes not to be validate
'getTokens_json',
Expand All @@ -88,7 +92,7 @@ public function __construct($config = null)
),
'enableCsrfValidation'=>false, // Enable to activate CSRF protection
'enableCookieValidation'=>false // Enable to activate cookie protection
);
));

parent::__construct($config);
// Load the default and environmental settings from different files into self.
Expand Down

0 comments on commit 214fdd5

Please sign in to comment.