Merge pull request #4044 from sysown/v2.x-4042

Do not print version numbers longer than 32 chars
pull/4048/head
René Cannaò 3 years ago committed by GitHub
commit 4768a95445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -150,7 +150,8 @@ static char * main_check_latest_version() {
void * main_check_latest_version_thread(void *arg) {
char * latest_version = main_check_latest_version();
if (latest_version) {
// we check for potential invalid data , see issue #4042
if (latest_version != NULL && strlen(latest_version) < 32) {
if (
(know_latest_version == NULL) // first check
|| (strcmp(know_latest_version,latest_version)) // new version detected

Loading…
Cancel
Save