From 3cbae7da97264a4e4cbaf2a1524ba293348b18b2 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 3 Nov 2023 12:30:03 -0400 Subject: [PATCH] A couple of minor fixes --- wire/core/MarkupQA.php | 1 - wire/core/admin.php | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/wire/core/MarkupQA.php b/wire/core/MarkupQA.php index 9a5f52bb..57f8d48b 100644 --- a/wire/core/MarkupQA.php +++ b/wire/core/MarkupQA.php @@ -1038,7 +1038,6 @@ class MarkupQA extends Wire { $path = null; if($this->isPagePathHooked()) { - $this->warning("page path is hooked"); $page = $pages->get($pageID); if($page->id) { if($language && $language->id) { diff --git a/wire/core/admin.php b/wire/core/admin.php index 81ea4849..54b3df4e 100644 --- a/wire/core/admin.php +++ b/wire/core/admin.php @@ -95,7 +95,7 @@ function _checkForTwoFactorAuth(Session $session) { */ function _checkForMaxInputVars(WireInput $input) { $max = (int) ini_get('max_input_vars'); - if($max && count($_POST) >= $max) { + if($max && count($_POST, COUNT_RECURSIVE) >= $max) { $input->error(sprintf(__('You have reached PHP’s “max_input_vars” setting of %d — please increase it.'), $max)); } } @@ -238,4 +238,3 @@ if($controller && $controller->isAjax()) { $session->removeNotices(); if($content) {} // ignore } -