This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new f37855c623 hrw: Fix an index bug in run plugin operator (#13162)
f37855c623 is described below
commit f37855c623da8d7af67ccf9d8a368b6467634fed
Author: Chris McFarlen <[email protected]>
AuthorDate: Thu May 14 12:15:21 2026 -0500
hrw: Fix an index bug in run plugin operator (#13162)
---
plugins/header_rewrite/operators.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/header_rewrite/operators.cc
b/plugins/header_rewrite/operators.cc
index 126a928879..a5b86cfdb6 100644
--- a/plugins/header_rewrite/operators.cc
+++ b/plugins/header_rewrite/operators.cc
@@ -1290,7 +1290,7 @@ OperatorRunPlugin::initialize(Parser &p)
argv[0] = p.from_url();
argv[1] = p.to_url();
- for (int i = 0; i < argc; ++i) {
+ for (size_t i = 0; i < tokens.size(); ++i) {
argv[i + 2] = const_cast<char *>(tokens[i].c_str());
}