Skip to content

Commit aba3307

Browse files
committed
Update SourceBrowser
1 parent 2759dd5 commit aba3307

File tree

7 files changed

+460
-7
lines changed

7 files changed

+460
-7
lines changed

src/SourceBrowser.hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8c04138eb532089ba717df15223285e4ab036d75
1+
f17e41ea339189d6cf3355bd0edc0a6da59e64e0

src/SourceBrowser/SECURITY.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Security Policy
22

3+
## Please update to 1.0.32 or newer
4+
5+
Ensure that you have this commit:
6+
https://github.com/KirillOsenkov/SourceBrowser/commit/23dc70b28af2baf082904688027b7314403844f7
7+
8+
If you maintain SourceBrowser-generated websites please update scripts.js so that it contains the above change (or redeploy using the latest version).
9+
310
## Supported Versions
411

512
The .NET Core and ASP.NET Core support policy, including supported versions can be found at the [.NET Core Support Policy Page](https://dotnet.microsoft.com/platform/support/policy/dotnet-core).
@@ -12,4 +19,4 @@ original message. Further information, including the MSRC PGP key, can be found
1219

1320
Reports via MSRC may qualify for the .NET Core Bug Bounty. Details of the .NET Core Bug Bounty including terms and conditions are at [https://aka.ms/corebounty](https://aka.ms/corebounty).
1421

15-
Please do not open issues for anything you think might have a security implication.
22+
Please do not open issues for anything you think might have a security implication.

src/SourceBrowser/src/HtmlGenerator/HtmlGenerator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<PropertyGroup>
1515
<NuGetPackageId>SourceBrowser</NuGetPackageId>
1616
<NuSpecFile>$(MSBuildProjectDirectory)\$(NuGetPackageId).nuspec</NuSpecFile>
17-
<NuGetVersion>1.0.31</NuGetVersion>
18-
<NuGetVersionRoslyn>3.6.0</NuGetVersionRoslyn>
17+
<NuGetVersion>1.0.33</NuGetVersion>
18+
<NuGetVersionRoslyn>3.8.0-3.final</NuGetVersionRoslyn>
1919
</PropertyGroup>
2020
<ItemGroup>
2121
<Reference Include="..\..\lib\Microsoft.CodeAnalysis.Workspaces.Desktop.dll" />

src/SourceBrowser/src/HtmlGenerator/Pass1-Generation/DocumentGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public async Task Generate()
5454
Delegate.CreateDelegate(typeof(Func<SemanticModel, SyntaxNode, CancellationToken, bool>), SemanticFactsService, isWrittenTo);
5555

5656
var syntaxFactsServiceType = SyntaxFactsService.GetType();
57-
var getBindableParent = syntaxFactsServiceType.GetMethod("GetBindableParent");
57+
var getBindableParent = syntaxFactsServiceType.GetMethod("TryGetBindableParent");
5858
this.getBindableParentDelegate = (Func<SyntaxToken, SyntaxNode>)
5959
Delegate.CreateDelegate(typeof(Func<SyntaxToken, SyntaxNode>), SyntaxFactsService, getBindableParent);
6060

src/SourceBrowser/src/SourceIndexServer/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
cols="504,*"
1818
frameborder="1"
1919
border="20"
20-
bordercolor="#EEEEEE"
20+
bordercolor="#aaa"
2121
framespacing="20">
2222
<frame name="n"
2323
id="n"

src/SourceBrowser/src/SourceIndexServer/wwwroot/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function processHash() {
139139
fileUrl = fileUrl + "#" + createSafeLineNumber(hashOrLine);
140140
}
141141

142-
redirectLocation(s, fileUrl);
142+
redirectLocation(s, "/" + fileUrl);
143143

144144
var pathParts = potentialFile.split("/");
145145
if (pathParts.length > 1) {

0 commit comments

Comments
 (0)