You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ra...@apache.org on 2018/09/25 14:48:35 UTC

[trafficcontrol] branch master updated: Escape $1 so that the regex populates correctly

This is an automated email from the ASF dual-hosted git repository.

rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new a14a20f  Escape $1 so that the regex populates correctly
a14a20f is described below

commit a14a20fb1d3f3ac98b43479c47f656011cfa9a64
Author: Evan Zelkowitz <19...@users.noreply.github.com>
AuthorDate: Mon Sep 24 11:11:22 2018 -0600

    Escape $1 so that the regex populates correctly
---
 traffic_ops/app/lib/UI/DeliveryService.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_ops/app/lib/UI/DeliveryService.pm b/traffic_ops/app/lib/UI/DeliveryService.pm
index 2c34872..578538d 100644
--- a/traffic_ops/app/lib/UI/DeliveryService.pm
+++ b/traffic_ops/app/lib/UI/DeliveryService.pm
@@ -1432,7 +1432,7 @@ sub get_qstring_ignore_remap {
 	my $ats_major_version = shift;
 
 	if ($ats_major_version >= 6) {
-		return " \@plugin=cachekey.so \@pparam=--separator= \@pparam=--remove-all-params=true \@pparam=--remove-path=true \@pparam=--capture-prefix-uri=/^([^?]*)/$1/";
+		return " \@plugin=cachekey.so \@pparam=--separator= \@pparam=--remove-all-params=true \@pparam=--remove-path=true \@pparam=--capture-prefix-uri=/^([^?]*)/\$1/";
 	}
 	else {
 		return " \@plugin=cacheurl.so \@pparam=cacheurl_qstring.config";