YiiGii Module - Whitespaces breaks IP Filter

This commit is contained in:
Lucas Bartholemy 2014-05-07 17:10:51 +02:00
parent fc0a3c7438
commit 58fd1eca15

View File

@ -17,7 +17,7 @@ class YiiGiiModule extends CWebModule {
'class' => 'system.gii.GiiModule',
'password' => HSetting::Get('password', 'yiigii'),
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters' => explode(",", HSetting::Get('ipFilters', 'yiigii')),
'ipFilters' => explode(",", str_replace(" ", "",HSetting::Get('ipFilters', 'yiigii'))),
'generatorPaths' => array(
'bootstrap.gii',
),