mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 12:54:29 -04:00
Merge branch 'develop' of github.com:hillelcoren/invoice-ninja into develop
This commit is contained in:
commit
6d7b25bcf5
@ -26,3 +26,4 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
### Fixed
|
||||
- "Manual entry" untranslatable #562
|
||||
- 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
|
||||
// ie, TRUSTED_PROXIES='10.0.0.0/8,172.16.0.0/12,192.168.0.0/16'
|
||||
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
|
||||
if (Utils::requireHTTPS() && !Request::secure()) {
|
||||
return Redirect::secure(Request::path());
|
||||
if (Utils::requireHTTPS() && !$request->secure()) {
|
||||
return Redirect::secure($request->path());
|
||||
}
|
||||
|
||||
// If the database doens't yet exist we'll skip the rest
|
||||
|
Loading…
x
Reference in New Issue
Block a user