This commit is contained in:
Miroslav Stampar
2017-07-17 22:24:51 +02:00
parent 591a60bbde
commit 7d147f613f
3 changed files with 4 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ class Web:
headers = {}
been = set([conf.url])
for match in re.finditer(r"=['\"]((https?):)?(//[^/'\"]+)?(/[\w/.-]*)\bwp-", kb.originalPage, re.I):
for match in re.finditer(r"=['\"]((https?):)?(//[^/'\"]+)?(/[\w/.-]*)\bwp-", kb.originalPage or "", re.I):
url = "%s%s" % (conf.url.replace(conf.path, match.group(4)), "wp-content/wp-db.php")
if url not in been:
try: