We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 068427c commit 7083890Copy full SHA for 7083890
1 file changed
DNN Platform/DotNetNuke.Web.Client/Controls/DnnCssInclude.cs
@@ -42,11 +42,17 @@ public DnnCssInclude(IClientResourceController clientResourceController)
42
/// <inheritdoc />
43
protected override void OnLoad(EventArgs e)
44
{
45
+ var filePath = this.FilePath;
46
+ if (filePath.IndexOf('?') > 0)
47
+ {
48
+ filePath = filePath.Substring(0, filePath.IndexOf('?'));
49
+ }
50
+
51
var extension = ".css";
- var hit = this.FilePath.LastIndexOf('.');
52
+ var hit = filePath.LastIndexOf('.');
53
if (hit > 0)
54
- extension = this.FilePath.Substring(hit).ToLowerInvariant();
55
+ extension = filePath.Substring(hit).ToLowerInvariant();
56
}
57
58
switch (extension)
0 commit comments