Skip to content

Commit f56ef52

Browse files
Fixed path error when BASE_PATH is nil.
1 parent 761e735 commit f56ef52

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/auxiliary/scanner/http/svn_wcdb_scanner.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ def initialize
4040
end
4141

4242
def run_host(ip)
43-
path = datastore['BASE_PATH'] + '/.svn/wc.db'
44-
get_wcdb(path)
43+
if datastore['BASE_PATH']
44+
get_wcdb(datastore['BASE_PATH'] + '/.svn/wc.db')
45+
else
46+
get_wcdb('/.svn/wc.db')
47+
end
4548
end
4649

4750
def get_wcdb(path)

0 commit comments

Comments
 (0)