From d1201e70a2fd90764b09bc59203b388ab32d05b5 Mon Sep 17 00:00:00 2001 From: passbe Date: Mon, 24 Oct 2011 07:00:29 +0000 Subject: [PATCH] Corrected min_ver, max_ver bug. Fixes issue 489. Fixes issue 525. git-svn-id: https://beef.googlecode.com/svn/trunk@1379 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- core/module.rb | 4 ++-- .../browser/detect_visited_urls/config.yaml | 20 +++++++++---------- modules/host/clipboard_theft/config.yaml | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/core/module.rb b/core/module.rb index 2e45a6706..5201c3a80 100644 --- a/core/module.rb +++ b/core/module.rb @@ -214,14 +214,14 @@ module Module #version check if opts.key?('ver') if subv.key?('min_ver') - if subv['min_ver'].kind_of? Fixnum and opts['ver'] >= subv['min_ver'] + if subv['min_ver'].kind_of? Fixnum and opts['ver'].to_i >= subv['min_ver'] rating += 1 else break end end if subv.key?('max_ver') - if subv['max_ver'].kind_of? Fixnum and opts['ver'] <= subv['max_ver'] + if subv['max_ver'].kind_of? Fixnum and opts['ver'].to_i <= subv['max_ver'] rating += 1 else break diff --git a/modules/browser/detect_visited_urls/config.yaml b/modules/browser/detect_visited_urls/config.yaml index ae0f5e4ce..5cd2e027d 100644 --- a/modules/browser/detect_visited_urls/config.yaml +++ b/modules/browser/detect_visited_urls/config.yaml @@ -24,18 +24,18 @@ beef: target: working: IE: - min_ver: "6" - max_ver: "7" + min_ver: 6 + max_ver: 7 FF: - min_ver: "3" - max_ver: "3" + min_ver: 3 + max_ver: 3 C: - min_ver: "1" - max_ver: "5" + min_ver: 1 + max_ver: 5 S: - min_ver: "3" - max_ver: "3" + min_ver: 3 + max_ver: 3 O: - min_ver: "1" - max_ver: "10" + min_ver: 1 + max_ver: 10 not_working: ["All"] diff --git a/modules/host/clipboard_theft/config.yaml b/modules/host/clipboard_theft/config.yaml index b34c44556..57c4c01db 100644 --- a/modules/host/clipboard_theft/config.yaml +++ b/modules/host/clipboard_theft/config.yaml @@ -24,11 +24,11 @@ beef: target: working: IE: - min_ver: "6" - max_ver: "6" + min_ver: 6 + max_ver: 6 user_notify: IE: - min_ver: "7" - max_ver: "7" + min_ver: 7 + max_ver: 7 not_working: ["All"]