Skip to content

Commit

Permalink
Add missing SecurityCritical attribute
Browse files Browse the repository at this point in the history
Fixes #1471
  • Loading branch information
M-Zuber committed Oct 13, 2016
1 parent 4bd3a44 commit 3bf17e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Octokit/Exceptions/RepositoryFormatException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.Serialization;
using System.Security;

namespace Octokit
{
Expand Down Expand Up @@ -50,7 +51,7 @@ protected RepositoryFormatException(SerializationInfo info, StreamingContext con
if (info == null) return;
message = info.GetString("Message");
}

[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
Expand Down

0 comments on commit 3bf17e1

Please sign in to comment.