Fix version check

This commit is contained in:
JustArchi
2017-07-01 06:24:59 +02:00
parent 2140fcedc2
commit 589dfb4af2

View File

@@ -96,6 +96,12 @@ namespace ArchiSteamFarm {
return;
}
if (string.IsNullOrEmpty(version)) {
ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsInvalid, SharedInfo.VersionFile));
return;
}
version = version.TrimEnd();
if (string.IsNullOrEmpty(version) || !IsVersionValid(version)) {
ArchiLogger.LogGenericError(string.Format(Strings.ErrorIsInvalid, SharedInfo.VersionFile));
return;