mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-04-20 07:35:46 -04:00
[fix] a little bit error
This commit is contained in:
parent
90087123ba
commit
e64b0bb0ec
@ -75,9 +75,9 @@ languageselection = false
|
||||
; sha256 in HMAC for the deletion token
|
||||
zerobincompatibility = false
|
||||
|
||||
; allows you to specify the name of the web server you are using to use ParseBin.
|
||||
; if you use Nginx, decommente and add nginx.
|
||||
webserver = "Nginx"
|
||||
; allows you to specify the name of the web server you are using to use PrivateBin.
|
||||
; if you use Nginx, uncomment and add nginx.
|
||||
; webserver = "Nginx"
|
||||
|
||||
[expire]
|
||||
; expire value that is selected per default
|
||||
|
@ -54,7 +54,7 @@ class Configuration
|
||||
'icon' => 'identicon',
|
||||
'cspheader' => 'default-src \'none\'; manifest-src \'self\'; connect-src *; script-src \'self\'; style-src \'self\'; font-src \'self\'; img-src \'self\' data:; referrer no-referrer; sandbox allow-same-origin allow-scripts allow-forms allow-popups',
|
||||
'zerobincompatibility' => false,
|
||||
'webserver' => 'Apache',
|
||||
'webserver' => 'Apache',
|
||||
),
|
||||
'expire' => array(
|
||||
'default' => '1week',
|
||||
|
@ -82,13 +82,13 @@ abstract class AbstractPersistence
|
||||
*/
|
||||
protected static function _initialize()
|
||||
{
|
||||
if (property_exists($data->meta, 'webserver') && $data->meta->webserver && $this->_conf->getKey('webserver') == "Apache") {
|
||||
// Create storage directory if it does not exist.
|
||||
if (!is_dir(self::$_path)) {
|
||||
if (!@mkdir(self::$_path, 0700)) {
|
||||
throw new Exception('unable to create directory ' . self::$_path, 10);
|
||||
}
|
||||
// Create storage directory if it does not exist.
|
||||
if (!is_dir(self::$_path)) {
|
||||
if (!@mkdir(self::$_path, 0700)) {
|
||||
throw new Exception('unable to create directory ' . self::$_path, 10);
|
||||
}
|
||||
}
|
||||
if (property_exists($data->meta, 'webserver') && $data->meta->webserver && $this->_conf->getKey('webserver') == "Apache") {
|
||||
$file = self::$_path . DIRECTORY_SEPARATOR . '.htaccess';
|
||||
if (!is_file($file)) {
|
||||
$writtenBytes = @file_put_contents(
|
||||
|
Loading…
x
Reference in New Issue
Block a user