mirror of
https://github.com/teamchong/pxpipe.git
synced 2026-07-22 02:02:51 +02:00
1 line
788 B
JSON
1 line
788 B
JSON
[{"instance_id": "instance_future-architect__vuls-36456cb151894964ba1683ce7da5c35ada789970", "patch": "diff --git a/wordpress/wordpress.go b/wordpress/wordpress.go\nindex 2d44b9f..41d71d9 100644\n--- a/wordpress/wordpress.go\n+++ b/wordpress/wordpress.go\n@@ -268,6 +268,16 @@ loop:\n \treturn \"\", err\n }\n \n+// searchCache looks for the given name in the cache and returns\n+// the cached response body and whether it was found.\n+func searchCache(name string, wpVulnCaches *map[string]string) (string, bool) {\n+\tvalue, ok := (*wpVulnCaches)[name]\n+\tif ok {\n+\t\treturn value, true\n+\t}\n+\treturn \"\", false\n+}\n+\n func removeInactives(pkgs models.WordPressPackages) (removed models.WordPressPackages) {\n \tfor _, p := range pkgs {\n \t\tif p.Status == \"inactive\" {\n"}] |