Files

22 lines
645 B
Diff

diff --git a/wordpress/wordpress.go b/wordpress/wordpress.go
index 2d44b9f..41d71d9 100644
--- a/wordpress/wordpress.go
+++ b/wordpress/wordpress.go
@@ -268,6 +268,16 @@ loop:
return "", err
}
+// searchCache looks for the given name in the cache and returns
+// the cached response body and whether it was found.
+func searchCache(name string, wpVulnCaches *map[string]string) (string, bool) {
+ value, ok := (*wpVulnCaches)[name]
+ if ok {
+ return value, true
+ }
+ return "", false
+}
+
func removeInactives(pkgs models.WordPressPackages) (removed models.WordPressPackages) {
for _, p := range pkgs {
if p.Status == "inactive" {