Improve WP detection

This commit is contained in:
Gaël Métais
2021-01-10 23:50:44 +00:00
parent 4b24cd68ce
commit 74b04ff922
+3 -1
View File
@@ -760,7 +760,9 @@ var Redownload = function() {
debug('Checking if it is WordPress on file %s', htmlRequest.url);
if (htmlRequest && htmlRequest.weightCheck.bodyBuffer.indexOf('/wp-content/') >= 0) {
if (htmlRequest &&
(htmlRequest.weightCheck.bodyBuffer.indexOf('/wp-content/') >= 0 ||
htmlRequest.weightCheck.bodyBuffer.indexOf('/wp-include/') >= 0)) {
debug('Response: yes.');
return true;
} else {