File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def try_user_pass(opts)
158
158
'Cookie' => 'PBack=0'
159
159
}
160
160
161
- if ( datastore [ 'SSL' ] . to_s . match ( /^(t|y|1)/i ) )
161
+ if datastore [ 'SSL' ]
162
162
if action . name == "OWA_2013"
163
163
data = 'destination=https://' << vhost << '/owa&flags=4&forcedownlevel=0&username=' << user << '&password=' << pass << '&isUtf8=1'
164
164
else
Original file line number Diff line number Diff line change @@ -70,11 +70,11 @@ def run
70
70
@log_console = false
71
71
@log_database = false
72
72
73
- if ( datastore [ 'LogConsole' ] . to_s . match ( /^(t|y|1)/i ) )
73
+ if datastore [ 'LogConsole' ]
74
74
@log_console = true
75
75
end
76
76
77
- if ( datastore [ 'LogDatabase' ] . to_s . match ( /^(t|y|1)/i ) )
77
+ if datastore [ 'LogDatabase' ]
78
78
@log_database = true
79
79
end
80
80
You can’t perform that action at this time.
0 commit comments