Maybe. What would it allow you to do that you couldn't already do by guessing one of the directories?
On Mon, Mar 2, 2009 at 4:15 PM, hammett <[email protected]> wrote: > > Isnt there security implications on this one? > > On Sun, Mar 1, 2009 at 2:57 AM, <[email protected]> wrote: > > > > User: jonathon.rossi > > Date: 2009/03/01 03:57 AM > > > > Modified: > > /trunk/Core/ > > Changes.txt > > /trunk/Core/Castle.Core.Tests/Resources/ > > CustomUriTestCase.cs > > /trunk/Core/Castle.Core/Resource/ > > CustomUri.cs > > > > Log: > > - Applied Eric Hauser's patch fixing CORE-ISSUE-22 > > "Support for environment variables in resource URI" > > > > File Changes: > > > > Directory: /trunk/Core/ > > ======================= > > > > File [modified]: Changes.txt > > Delta lines: +0 -0 > > =================================================================== > > > > Directory: /trunk/Core/Castle.Core/Resource/ > > ============================================ > > > > File [modified]: CustomUri.cs > > Delta lines: +15 -0 > > =================================================================== > > > > --- trunk/Core/Castle.Core.Tests/Resources/CustomUriTestCase.cs > 2009-03-01 10:30:30 UTC (rev 5572) > > +++ trunk/Core/Castle.Core.Tests/Resources/CustomUriTestCase.cs > 2009-03-01 10:57:57 UTC (rev 5573) > > @@ -58,6 +58,21 @@ > > } > > > > [Test] > > + public void UriWithEnvironmentVariable() > > + { > > + string path = > Environment.GetEnvironmentVariable("path"); > > + Assert.IsNotEmpty(path); > > + > > + CustomUri uri1 = new CustomUri("file://%path%"); > > + > > + Assert.AreEqual(path, uri1.Path); > > + Assert.AreEqual(null, uri1.Host); > > + Assert.AreEqual("file", uri1.Scheme); > > + Assert.AreEqual(true, uri1.IsFile); > > + Assert.AreEqual(false, uri1.IsUnc); > > + } > > + > > + [Test] > > public void AssemblyUri() > > { > > > > Directory: /trunk/Core/Castle.Core.Tests/Resources/ > > =================================================== > > > > File [modified]: CustomUriTestCase.cs > > Delta lines: +3 -0 > > =================================================================== > > > > --- trunk/Core/Changes.txt 2009-03-01 10:30:30 UTC (rev 5572) > > +++ trunk/Core/Changes.txt 2009-03-01 10:57:57 UTC (rev 5573) > > @@ -1,3 +1,6 @@ > > +- Applied Eric Hauser's patch fixing CORE-ISSUE-22 > > + "Support for environment variables in resource URI" > > + > > - Applied Gauthier Segay's patch fixing CORE-ISSUE-20 > > "Castle.Core.Tests won't build via nant because it use TraceContext > without referencing System.Web.dll" > > > > > > > > > > > > > -- > Cheers, > hammett > http://hammett.castleproject.org/ > > > > -- Jono --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en -~----------~----~----~----~------~----~------~--~---
