Просмотр исходного кода

ensure the server salt path is initialized, instead of relying on the default

El RIDO 10 лет назад
Родитель
Сommit
a13266a784
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      lib/PrivateBin.php

+ 2 - 0
lib/PrivateBin.php

@@ -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');