mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Merge pull request #978 from sebklaus/#977-Request-statically-called
Fixed Request being statically called
This commit is contained in:
commit
194547f7bf
@ -26,3 +26,4 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
### Fixed
|
### Fixed
|
||||||
- "Manual entry" untranslatable #562
|
- "Manual entry" untranslatable #562
|
||||||
- Using a database table prefix breaks the dashboard #203
|
- Using a database table prefix breaks the dashboard #203
|
||||||
|
- Request statically called in StartupCheck.php #977
|
||||||
|
@ -33,12 +33,12 @@ class StartupCheck
|
|||||||
// TRUSTED_PROXIES accepts a comma delimited list of subnets
|
// TRUSTED_PROXIES accepts a comma delimited list of subnets
|
||||||
// ie, TRUSTED_PROXIES='10.0.0.0/8,172.16.0.0/12,192.168.0.0/16'
|
// ie, TRUSTED_PROXIES='10.0.0.0/8,172.16.0.0/12,192.168.0.0/16'
|
||||||
if (isset($_ENV['TRUSTED_PROXIES'])) {
|
if (isset($_ENV['TRUSTED_PROXIES'])) {
|
||||||
Request::setTrustedProxies(array_map('trim', explode(',', env('TRUSTED_PROXIES'))));
|
$request->setTrustedProxies(array_map('trim', explode(',', env('TRUSTED_PROXIES'))));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure all request are over HTTPS in production
|
// Ensure all request are over HTTPS in production
|
||||||
if (Utils::requireHTTPS() && !Request::secure()) {
|
if (Utils::requireHTTPS() && !$request->secure()) {
|
||||||
return Redirect::secure(Request::path());
|
return Redirect::secure($request->path());
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the database doens't yet exist we'll skip the rest
|
// If the database doens't yet exist we'll skip the rest
|
||||||
|
Loading…
Reference in New Issue
Block a user