From b0615215fe39f880afc51fa79969d12cc0ef2681 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 11 Feb 2019 20:03:05 +0000 Subject: [PATCH] Adds missing #to_s calls --- lib/wpscan/db/fingerprints.rb | 2 +- lib/wpscan/db/plugin.rb | 2 +- lib/wpscan/db/theme.rb | 2 +- lib/wpscan/db/wp_version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/wpscan/db/fingerprints.rb b/lib/wpscan/db/fingerprints.rb index 03c9ac93..ef46c6b9 100644 --- a/lib/wpscan/db/fingerprints.rb +++ b/lib/wpscan/db/fingerprints.rb @@ -33,7 +33,7 @@ module WPScan # @return [ String ] def self.wp_fingerprints_path - @wp_fingerprints_path ||= DB_DIR.join('wp_fingerprints.json') + @wp_fingerprints_path ||= DB_DIR.join('wp_fingerprints.json').to_s end # @return [ Hash ] diff --git a/lib/wpscan/db/plugin.rb b/lib/wpscan/db/plugin.rb index 9e6a0d7b..984980e9 100644 --- a/lib/wpscan/db/plugin.rb +++ b/lib/wpscan/db/plugin.rb @@ -4,7 +4,7 @@ module WPScan class Plugin < WpItem # @return [ String ] def self.db_file - @db_file ||= DB_DIR.join('plugins.json') + @db_file ||= DB_DIR.join('plugins.json').to_s end end end diff --git a/lib/wpscan/db/theme.rb b/lib/wpscan/db/theme.rb index f21542c6..59646e69 100644 --- a/lib/wpscan/db/theme.rb +++ b/lib/wpscan/db/theme.rb @@ -4,7 +4,7 @@ module WPScan class Theme < WpItem # @return [ String ] def self.db_file - @db_file ||= DB_DIR.join('themes.json') + @db_file ||= DB_DIR.join('themes.json').to_s end end end diff --git a/lib/wpscan/db/wp_version.rb b/lib/wpscan/db/wp_version.rb index fc6a0ab1..c74b3ad1 100644 --- a/lib/wpscan/db/wp_version.rb +++ b/lib/wpscan/db/wp_version.rb @@ -4,7 +4,7 @@ module WPScan class Version < WpItem # @return [ String ] def self.db_file - @db_file ||= DB_DIR.join('wordpresses.json') + @db_file ||= DB_DIR.join('wordpresses.json').to_s end end end