9f28858ef5c14f12eff31b24c07937af2035a7a8 max Sat Jun 6 13:00:39 2015 -0700 fixing a hgTracks bug that I introduced recently, currently affects only hgwdev, refs #15480 diff --git src/hg/lib/hui.c src/hg/lib/hui.c index 752c438..f959117 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -8508,34 +8508,34 @@ if (nextColon) /* terminate suffixClone suffix */ *nextColon = '\0'; /* when next colon is present */ *suffix = '\0'; /* terminate itemClone prefix */ outs[7] = itemClone; outs[8] = suffixClone; /* small memory leak here for these cloned strings */ /* not important for a one-time operation in a CGI that will exit */ } else { outs[7] = idInUrl; /* otherwise, these are not expected */ outs[8] = idInUrl; /* to be used */ } // URL may now contain item boundaries ins[9] = "${"; ins[10] = "$}"; -if (cartOptionalString(cart, "o") && cartOptionalString(cart, "t")) +if (cartOptionalString(cart, "l") && cartOptionalString(cart, "r")) { - int itemBeg = cartIntExp(cart, "o") + 1; // Should strip any unexpected commas - int itemEnd = cartIntExp(cart, "t"); + int itemBeg = cartIntExp(cart, "l"); // Should strip any unexpected commas + int itemEnd = cartIntExp(cart, "r"); safef(begItem, sizeof begItem, "%d", itemBeg); safef(endItem, sizeof endItem, "%d", itemEnd); outs[9] = begItem; outs[10] = endItem; } else // should never be but I am unwilling to bet the farm { outs[9] = startString; outs[10] = endString; } ins[11] = "$n"; outs[11] = scName; ins[12] = "$taxId";