From d622e6214a6ac2fab0ba4bae2f18fad77750a44c Mon Sep 17 00:00:00 2001 From: Kyle Taylor Date: Sun, 6 Feb 2022 16:50:00 -0600 Subject: [PATCH 1/2] Fix Drupal Multisite - Expand asset source detection --- src/technologies/d.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/technologies/d.json b/src/technologies/d.json index 8462763c6..11ce3d7fc 100644 --- a/src/technologies/d.json +++ b/src/technologies/d.json @@ -1190,6 +1190,12 @@ 88 ], "description": "Drupal Multisite enables separate, independent sites to be served from a single codebase.", + "html": [ + "script[src*='sites\\/(?!default|all).*\\/files']", + "img[src*='sites\\/(?!default|all).*\\/files']", + "img[data-src*='sites\\/(?!default|all).*\\/files']", + "link[href*='sites\\/(?!default|all).*\\/files']" + ], "icon": "Drupal.svg", "implies": "Drupal", "oss": true, From 672f3d55f17c746a4b16b8cc1170d3cc4114d333 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Wed, 9 Feb 2022 11:23:00 +1100 Subject: [PATCH 2/2] Update d.json --- src/technologies/d.json | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/src/technologies/d.json b/src/technologies/d.json index 11ce3d7fc..825cb958c 100644 --- a/src/technologies/d.json +++ b/src/technologies/d.json @@ -1190,11 +1190,37 @@ 88 ], "description": "Drupal Multisite enables separate, independent sites to be served from a single codebase.", - "html": [ - "script[src*='sites\\/(?!default|all).*\\/files']", - "img[src*='sites\\/(?!default|all).*\\/files']", - "img[data-src*='sites\\/(?!default|all).*\\/files']", - "link[href*='sites\\/(?!default|all).*\\/files']" + "dom": { + "img[src*='sites/default/']": { + "attributes": { + "src": "sites\\/default\\/.*\\/files'" + } + }, + "img[src*='sites/all/']": { + "attributes": { + "src": "sites\\/all\\/.*\\/files'" + } + }, + "img[data-src*='sites/default/']": { + "attributes": { + "data-src": "sites\\/default\\/.*\\/files'" + } + }, + "img[data-src*='sites/all/']": { + "attributes": { + "data-src": "sites\\/all\\/.*\\/files'" + } + }, + "link[href*='sites/default/']": { + "attributes": { + "href": "sites\\/default\\/.*\\/files'" + } + }, + "link[href*='sites/all/']": { + "attributes": { + "href": "sites\\/all\\/.*\\/files'" + } + } ], "icon": "Drupal.svg", "implies": "Drupal", @@ -1345,4 +1371,4 @@ "scriptSrc": "deepMiner\\.js", "website": "https://github.com/deepwn/deepMiner" } -} \ No newline at end of file +}