Use Match constant in BES as well

bug/bundler_fix
James Lee 2014-10-01 16:17:13 -05:00
parent 7e05ff343e
commit 5cb016c1b1
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ module Msf
<%= js_os_detect %>
<%= js_ajax_post %>
<%= js_misc_addons_detect %>
<%= js_ie_addons_detect if os.match(/^Windows/) and client == HttpClients::IE %>
<%= js_ie_addons_detect if os.match(OperatingSystems::Match::WINDOWS) and client == HttpClients::IE %>
function objToQuery(obj) {
var q = [];
@ -388,7 +388,7 @@ module Msf
"<%=REQUIREMENT_KEY_SET[:flash]%>" : window.misc_addons_detect.getFlashVersion()
};
<% if os.match(/^Windows/) and client == HttpClients::IE %>
<% if os.match(OperatingSystems::Match::WINDOWS) and client == HttpClients::IE %>
d['<%=REQUIREMENT_KEY_SET[:office]%>'] = window.ie_addons_detect.getMsOfficeVersion();
d['<%=REQUIREMENT_KEY_SET[:mshtml_build]%>'] = ScriptEngineBuildVersion().toString();
<%