Skip to content

Commit 4277c20

Browse files
committed
use include?
1 parent 39e3373 commit 4277c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/mantisbt_php_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def upload_xml(payload_b64, rand_text, cookies, is_check)
215215
'data' => data_post
216216
}, timeout)
217217

218-
if res and res.body =~ /APPLICATION ERROR/
218+
if res && res.body && res.body.include?('APPLICATION ERROR')
219219
print_error('Error on uploading XML')
220220
return false
221221
end

0 commit comments

Comments
 (0)