Skip to content

Commit

Permalink
Fixed blank line issue in HIBP API response
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaifm committed Aug 26, 2022
1 parent 8e7639a commit a3c5b54
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions HIBPOfflineCheck/HIBPOfflineColumnProv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ private void GetOnlineStatus()

foreach (var line in lines)
{
if (line.Length < pwdSha.Length)
continue;

string fullSha = truncatedSha + line;
var compare = string.Compare(pwdSha, fullSha.Substring(0, pwdSha.Length), StringComparison.Ordinal);

Expand Down
4 changes: 2 additions & 2 deletions HIBPOfflineCheck/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7.7.0")]
[assembly: AssemblyFileVersion("1.7.7.0")]
[assembly: AssemblyVersion("1.7.8.0")]
[assembly: AssemblyFileVersion("1.7.8.0")]
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:
HIBPOfflineCheck:1.7.7.0
HIBPOfflineCheck:1.7.8.0
:

0 comments on commit a3c5b54

Please sign in to comment.