Browse Source

Merge pull request #7 from frickenate/master

Fix bug allowing cache reset without reset permission
Andrew Collington 10 năm trước cách đây
mục cha
commit
1bfd8b114c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -68,7 +68,7 @@ class OpCacheService
                 echo json_encode($self->getData((empty($_GET['section']) ? null : $_GET['section'])));
             }
             exit;
-        } else if (isset($_GET['reset']) && $self->getOption('allow_invalidate')) {
+        } else if (isset($_GET['reset']) && $self->getOption('allow_reset')) {
             $self->resetCache();
         } else if (isset($_GET['invalidate']) && $self->getOption('allow_invalidate')) {
             $self->resetCache($_GET['invalidate']);