Compare commits

..

4 Commits

Author SHA1 Message Date
JustArchi
ac1dd261ff Misc 2019-01-04 15:49:16 +01:00
JustArchi
9810461c74 Closes #1007 2019-01-04 15:46:31 +01:00
dependabot[bot]
1b6718b545 Bump wiki from 64d7e1f to e2b8b8d
Bumps [wiki](https://github.com/JustArchiNET/ArchiSteamFarm.wiki) from `64d7e1f` to `e2b8b8d`.
- [Release notes](https://github.com/JustArchiNET/ArchiSteamFarm.wiki/releases)
- [Commits](64d7e1f430...e2b8b8dd42)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-04 07:00:48 +00:00
JustArchi
abcd8da446 Bump 2019-01-03 22:27:50 +01:00
3 changed files with 6 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<ApplicationIcon>ASF.ico</ApplicationIcon>
<AssemblyVersion>3.4.2.0</AssemblyVersion>
<AssemblyVersion>3.4.2.1</AssemblyVersion>
<Authors>JustArchi</Authors>
<Company>JustArchi</Company>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
@@ -10,7 +10,7 @@
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
<Description>ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.</Description>
<ErrorReport>none</ErrorReport>
<FileVersion>3.4.2.0</FileVersion>
<FileVersion>3.4.2.1</FileVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>latest</LangVersion>
<NoWarn>1591</NoWarn>

View File

@@ -288,13 +288,14 @@ namespace ArchiSteamFarm {
// If we ever need to correct this, we also need to clean up other places
const string deviceIdentifier = "android:";
if (!deviceID.StartsWith(deviceIdentifier, StringComparison.Ordinal) || (deviceID.Length != deviceIdentifier.Length + 36)) {
if (!deviceID.StartsWith(deviceIdentifier, StringComparison.Ordinal) || (deviceID.Length <= deviceIdentifier.Length)) {
return false;
}
// Dashes are optional in the ID, strip them off for comparison
string hash = deviceID.Substring(deviceIdentifier.Length).Replace("-", "");
return (hash.Length == 32) && Utilities.IsValidHexadecimalString(hash);
return (hash.Length > 0) && Utilities.IsValidHexadecimalString(hash);
}
private string GenerateConfirmationHash(uint time, string tag = null) {

2
wiki

Submodule wiki updated: 64d7e1f430...e2b8b8dd42