diff --git a/plugins/dynamix/scripts/diagnostics b/plugins/dynamix/scripts/diagnostics index c2e642657..a98c7f40b 100755 --- a/plugins/dynamix/scripts/diagnostics +++ b/plugins/dynamix/scripts/diagnostics @@ -32,7 +32,7 @@ function anonymize($text,$select) { if (!preg_match("/\b(disk|cache|parity|flash)\d*\b/", $row)) { $row = preg_replace("/^(\s*\[\S).*(\S\])( => Array)$/","$1..$2$3",$row); $row = preg_replace("/^(\s*\[(name|nameOrig|comment|flashGUID|regGUID|regTo|readList|writeList|csrf_token)\] => \S).*(\S)$/","$1..$3",$row); - $row = preg_replace("/(host: \"|https?:\/\/).+(\.unraid\.net)/","$1.hash.$2",$row); + $row = preg_replace(["/(host: \").+(\.unraid\.net:\d+\",)/","/(referrer: \"https?:\/\/).+(\.unraid\.net)/"],"$1hash$2",$row); } } return implode("\n", $rows);