Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
emcodem committed Nov 11, 2024
2 parents 0c2184c + a46b5b5 commit 83cc9c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rest_service/api/controllers/common/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ class JobTicket {
//old ffastrans versions use md2 for ticket hash, newer md5
hash = md5(jstring).toUpperCase();
if (ffastrans && ffastrans.general && ffastrans.general.versions) {
let v = ffastrans.general.versions.queuer.match(/(\d+)\.(\d+)\.(\d+)\.(\d+)/);
if (v[1] == 1 && v[2] <=4 && v[4] <= 101) { //ffastrans queuer 1.4.0.101 is the last version using md2
if (ffastrans.general.versions.queuer.match(/1\.([0-3]\.\d+|4\.0)/)) { //ffastrans queuer 1.4.0.101 is the last version using md2
hash = md2(jstring).toUpperCase();
}
}
Expand Down

0 comments on commit 83cc9c1

Please sign in to comment.