You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by "brbzull0 (via GitHub)" <gi...@apache.org> on 2024/04/11 15:32:21 UTC
Re: [PR] CID 1534718: txn_box - Fix invalid use of signed index. [trafficserver]
brbzull0 commented on code in PR #11241:
URL: https://github.com/apache/trafficserver/pull/11241#discussion_r1561227599
##########
plugins/experimental/txn_box/plugin/src/query.cc:
##########
@@ -88,12 +88,9 @@ query_take_qpair(TextView &qs)
// If there's anything left, look for kv pair.
if (qs) {
auto v{qs.clip_prefix_of([](char c) { return c != '&' && c != ';'; })};
- auto k = v.take_prefix_at('=');
+ auto k = v.take_prefix_at(QPair::Sep);
QPair zret{k, v};
zret.elt_sep = elt_sep;
- if (v.begin() > k.end()) {
- zret.kv_sep = v[-1];
Review Comment:
I think this can be ignored, it is using the same separator to find(`take_prefix_at`) and to place it here, so probably is the same just to leave the default which will not be overwritten.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org