trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dewr...@apache.org
Subject [1/2] incubator-trafficcontrol git commit: Clean up regex used to scrub 'X-MoneyTrace'
Date Thu, 01 Jun 2017 19:27:44 GMT
Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 1744e550c -> 5f7da08fa


Clean up regex used to scrub 'X-MoneyTrace'

Un-escape the leading angle bracket so that it matches its corresponding
end bracket. Upon first look it seemed like the escaped bracket might've
caused an issue with the regex replacement, but the regex works the same
in both cases.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/cf209e16
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/cf209e16
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/cf209e16

Branch: refs/heads/master
Commit: cf209e16368ea6d94b1819153c7046cd0c0219e3
Parents: 1744e55
Author: Rawlin Peters <rawlin_peters@comcast.com>
Authored: Tue May 30 14:35:20 2017 -0600
Committer: Dewayne Richardson <dewrich@apache.org>
Committed: Thu Jun 1 13:27:37 2017 -0600

----------------------------------------------------------------------
 traffic_ops/install/data/profiles/export_profiles.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/cf209e16/traffic_ops/install/data/profiles/export_profiles.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/install/data/profiles/export_profiles.pl b/traffic_ops/install/data/profiles/export_profiles.pl
index f222082..53400ea 100755
--- a/traffic_ops/install/data/profiles/export_profiles.pl
+++ b/traffic_ops/install/data/profiles/export_profiles.pl
@@ -108,7 +108,7 @@ sub parameterInsert {
 
 sub scrub_value {
     my $value = shift;
-	$value =~ s/ xmt="%\<\{X-MoneyTrace\}cqh>"//g;
+	$value =~ s/ xmt="%<\{X-MoneyTrace\}cqh>"//g;
 	return $value;
 }
 


Mime
View raw message