Steven Andrés пре 6 година
родитељ
комит
3f75c81a2f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lib/Controller.php

+ 2 - 2
lib/Controller.php

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