Permalink
Browse files

env variable expansion needs to happen first if we want to really detect

whitespace in arguments correctly

cherry picked c542409
  • Loading branch information...
1 parent 088cfd2 commit ddf9d4b2bf73e1457dde3990ba7af6838bbd6333 @kohsuke committed Oct 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 ServiceDescriptor.cs
View
@@ -173,7 +173,7 @@ private string AppendTags(string tagName)
foreach (XmlNode argument in dom.SelectNodes("//" + tagName))
{
- string token = argument.InnerText;
+ string token = Environment.ExpandEnvironmentVariables(argument.InnerText);
if (token.StartsWith("\"") && token.EndsWith("\""))
{
@@ -191,7 +191,7 @@ private string AppendTags(string tagName)
arguments += " " + token;
}
- return Environment.ExpandEnvironmentVariables(arguments);
+ return arguments;
}
}

0 comments on commit ddf9d4b

Please sign in to comment.