From 4db3bafeda17e339828b5ed3c118912b4a71dfb6 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 19 Feb 2024 16:45:54 -0500 Subject: [PATCH] in static render mode do not filter scripts from head content --- Oqtane.Client/UI/Head.razor | 18 +++++++++--------- Oqtane.Client/UI/ThemeBuilder.razor | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Oqtane.Client/UI/Head.razor b/Oqtane.Client/UI/Head.razor index d1435cc3..3f59e2d4 100644 --- a/Oqtane.Client/UI/Head.razor +++ b/Oqtane.Client/UI/Head.razor @@ -49,15 +49,15 @@ private string RemoveScripts(string headcontent) { - if (!string.IsNullOrEmpty(headcontent)) - { - var index = headcontent.IndexOf("= 0) - { - headcontent = headcontent.Remove(index, headcontent.IndexOf("") + 9 - index); - index = headcontent.IndexOf("= 0) + // { + // headcontent = headcontent.Remove(index, headcontent.IndexOf("") + 9 - index); + // index = headcontent.IndexOf("= 0) { var element = content.Substring(index, content.IndexOf(">", index) - index + 1); - if (!string.IsNullOrEmpty(element) && !element.ToLower().StartsWith("