From 16482c885854c0c22c94b39b2caa0026bd2c8efa Mon Sep 17 00:00:00 2001 From: preciz Date: Wed, 21 Oct 2026 09:23:33 +0200 Subject: [PATCH] Avoid redundant per-byte check_nesting! call in Plug.Conn.Query.split_keys/7 The check is redundant because the nesting count only increases at bracket delimiters, which already validate the count. --- lib/plug/conn/query.ex | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/plug/conn/query.ex b/lib/plug/conn/query.ex index d8ab0d255..9bda8a0f7 100644 --- a/lib/plug/conn/query.ex +++ b/lib/plug/conn/query.ex @@ -262,7 +262,6 @@ defmodule Plug.Conn.Query do end defp split_keys(<<_, rest::binary>>, binary, current_pos, start_pos, level, acc, count) do - check_nesting!(count) split_keys(rest, binary, current_pos + 1, start_pos, level, acc, count) end