fixed duplicated getKey()

pull/622/head
Steven Andrés 2020-05-08 12:18:20 -07:00 committed by GitHub
parent effe6ad3e5
commit 3f75c81a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -197,9 +197,9 @@ class Controller
private function _create()
{
// Check if whitelist feature is enabled
if (($option = $this->_conf->getKey('whitelist', 'traffic')) !== null) {
if (($option = $this->_conf->getKey('whitelist_paste_creation', 'traffic')) !== null) {
// Parse whitelist into array
$whitelist = explode(',', $this->_conf->getKey('whitelist_paste_creation', 'traffic'));
$whitelist = explode(',', $option);
// Check for source IP in HTTP header
if (($option = $this->_conf->getKey('header', 'traffic')) !== null) {
$httpHeader = 'HTTP_' . $option;