[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
|
; sha256 in HMAC for the deletion token
|
||||||
zerobincompatibility = false
|
zerobincompatibility = false
|
||||||
|
|
||||||
; allows you to specify the name of the web server you are using to use ParseBin.
|
; allows you to specify the name of the web server you are using to use PrivateBin.
|
||||||
; if you use Nginx, decommente and add nginx.
|
; if you use Nginx, uncomment and add nginx.
|
||||||
webserver = "Nginx"
|
; webserver = "Nginx"
|
||||||
|
|
||||||
[expire]
|
[expire]
|
||||||
; expire value that is selected per default
|
; expire value that is selected per default
|
||||||
|
@ -54,7 +54,7 @@ class Configuration
|
|||||||
'icon' => 'identicon',
|
'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',
|
'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,
|
'zerobincompatibility' => false,
|
||||||
'webserver' => 'Apache',
|
'webserver' => 'Apache',
|
||||||
),
|
),
|
||||||
'expire' => array(
|
'expire' => array(
|
||||||
'default' => '1week',
|
'default' => '1week',
|
||||||
|
@ -82,13 +82,13 @@ abstract class AbstractPersistence
|
|||||||
*/
|
*/
|
||||||
protected static function _initialize()
|
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.
|
||||||
// Create storage directory if it does not exist.
|
if (!is_dir(self::$_path)) {
|
||||||
if (!is_dir(self::$_path)) {
|
if (!@mkdir(self::$_path, 0700)) {
|
||||||
if (!@mkdir(self::$_path, 0700)) {
|
throw new Exception('unable to create directory ' . self::$_path, 10);
|
||||||
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';
|
$file = self::$_path . DIRECTORY_SEPARATOR . '.htaccess';
|
||||||
if (!is_file($file)) {
|
if (!is_file($file)) {
|
||||||
$writtenBytes = @file_put_contents(
|
$writtenBytes = @file_put_contents(
|
||||||
|
Loading…
Reference in New Issue
Block a user