change to whitelist_paste_creation

This commit is contained in:
Steven Andrés 2020-05-07 16:13:25 -07:00 committed by GitHub
parent cea96ee12a
commit 819d25a74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class Controller
private function _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) {
$httpHeader = 'HTTP_' . $option;
if (array_key_exists($httpHeader, $_SERVER) && !empty($_SERVER[$httpHeader])) {