ensure the server salt path is initialized, instead of relying on the default
This commit is contained in:
parent
e925833090
commit
a13266a784
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
|
|
||||||
use PrivateBin\Persistence\TrafficLimiter;
|
use PrivateBin\Persistence\TrafficLimiter;
|
||||||
|
use PrivateBin\Persistence\ServerSalt;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -183,6 +184,7 @@ class PrivateBin
|
||||||
$this->_request = new Request;
|
$this->_request = new Request;
|
||||||
$this->_urlBase = array_key_exists('REQUEST_URI', $_SERVER) ?
|
$this->_urlBase = array_key_exists('REQUEST_URI', $_SERVER) ?
|
||||||
htmlspecialchars($_SERVER['REQUEST_URI']) : '/';
|
htmlspecialchars($_SERVER['REQUEST_URI']) : '/';
|
||||||
|
ServerSalt::setPath($this->_conf->getKey('dir', 'traffic'));
|
||||||
|
|
||||||
// set default language
|
// set default language
|
||||||
$lang = $this->_conf->getKey('languagedefault');
|
$lang = $this->_conf->getKey('languagedefault');
|
||||||
|
|
Loading…
Reference in a new issue