more fixes
This commit is contained in:
parent
30764ffc17
commit
23e213d226
@ -17,6 +17,7 @@ class Installer extends Base
|
||||
{
|
||||
$this->loadConfig();
|
||||
|
||||
if ($this->request()->path() == '/') {
|
||||
if (!$this->validateSafeIps()) {
|
||||
# Client not allowed
|
||||
if ($this->dataDirExists()) {
|
||||
@ -56,12 +57,16 @@ class Installer extends Base
|
||||
$this->renderMessage($e->getMessage());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
# Load application and let it serve the request.
|
||||
$appClass = get_class(Rails::application());
|
||||
$appClass::dispatchRequest();
|
||||
}
|
||||
}
|
||||
|
||||
protected function checkWriteablePaths()
|
||||
{
|
||||
$paths = [
|
||||
'/install',
|
||||
'/log',
|
||||
'/tmp',
|
||||
'/public'
|
||||
|
Reference in New Issue
Block a user