From a13266a784f62e87df535a799e26bb30982c91ba Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 25 Aug 2016 15:02:38 +0200 Subject: [PATCH] ensure the server salt path is initialized, instead of relying on the default --- lib/PrivateBin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PrivateBin.php b/lib/PrivateBin.php index 47f58b6..9b41682 100644 --- a/lib/PrivateBin.php +++ b/lib/PrivateBin.php @@ -13,6 +13,7 @@ namespace PrivateBin; use PrivateBin\Persistence\TrafficLimiter; +use PrivateBin\Persistence\ServerSalt; use Exception; /** @@ -183,6 +184,7 @@ class PrivateBin $this->_request = new Request; $this->_urlBase = array_key_exists('REQUEST_URI', $_SERVER) ? htmlspecialchars($_SERVER['REQUEST_URI']) : '/'; + ServerSalt::setPath($this->_conf->getKey('dir', 'traffic')); // set default language $lang = $this->_conf->getKey('languagedefault');