mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
change to whitelist_paste_creation
This commit is contained in:
parent
cea96ee12a
commit
819d25a74c
@ -197,7 +197,7 @@ class Controller
|
|||||||
private function _create()
|
private function _create()
|
||||||
{
|
{
|
||||||
// Check whitelist if allowed to create
|
// Check whitelist if allowed to create
|
||||||
$whitelist = explode(',', $this->_conf->getKey('whitelist', 'traffic'));
|
$whitelist = explode(',', $this->_conf->getKey('whitelist_paste_creation', 'traffic'));
|
||||||
if (($option = $this->_conf->getKey('header', 'traffic')) !== null) {
|
if (($option = $this->_conf->getKey('header', 'traffic')) !== null) {
|
||||||
$httpHeader = 'HTTP_' . $option;
|
$httpHeader = 'HTTP_' . $option;
|
||||||
if (array_key_exists($httpHeader, $_SERVER) && !empty($_SERVER[$httpHeader])) {
|
if (array_key_exists($httpHeader, $_SERVER) && !empty($_SERVER[$httpHeader])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user