Skip to content

Commit

Permalink
Merge pull request #371 from jwittner/dev/clearFeeds
Browse files Browse the repository at this point in the history
Clear feeds to prevent injection
  • Loading branch information
jwittner committed Feb 10, 2021
2 parents c273ab6 + 85b718c commit d6971f2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
23 changes: 12 additions & 11 deletions Assets/NuGet.config
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NuGet" value="http://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
<config>
<add key="repositoryPath" value="./Packages" />
<add key="DefaultPushSource" value="http://www.nuget.org/api/v2/" />
</config>
<packageSources>
<clear/>
<add key="NuGet" value="http://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
<config>
<add key="repositoryPath" value="./Packages" />
<add key="DefaultPushSource" value="http://www.nuget.org/api/v2/" />
</config>
</configuration>
1 change: 1 addition & 0 deletions Assets/NuGet/Editor/NugetConfigFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public static NugetConfigFile CreateDefaultFile(string filePath)
@"<?xml version=""1.0"" encoding=""utf-8""?>
<configuration>
<packageSources>
<clear/>
<add key=""NuGet"" value=""http://www.nuget.org/api/v2/"" />
</packageSources>
<disabledPackageSources />
Expand Down
23 changes: 12 additions & 11 deletions Packager/Assets/NuGet.config
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NuGet" value="http://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
<config>
<add key="repositoryPath" value="./Packages" />
<add key="DefaultPushSource" value="http://www.nuget.org/api/v2/" />
</config>
<packageSources>
</clear>
<add key="NuGet" value="http://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
<config>
<add key="repositoryPath" value="./Packages" />
<add key="DefaultPushSource" value="http://www.nuget.org/api/v2/" />
</config>
</configuration>

0 comments on commit d6971f2

Please sign in to comment.