Skip to content

Commit 3c27520

Browse files
committed
[FixRM rapid7#8317] - Fix possible double slash in file path
It is possible to have a double slash in the base path, shouldn't happen.
1 parent 9d53ff4 commit 3c27520

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/scanner/http/svn_wcdb_scanner.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def initialize
4141

4242
def run_host(ip)
4343
if datastore['BASE_PATH']
44-
get_wcdb(datastore['BASE_PATH'] + '/.svn/wc.db')
44+
45+
get_wcdb(Rex::FileUtils.normalize_unix_path(datastore['BASE_PATH'] + '/.svn/wc.db'))
4546
else
4647
get_wcdb('/.svn/wc.db')
4748
end

0 commit comments

Comments
 (0)