dont log allows for html

This commit is contained in:
Pierce 2024-05-23 15:45:19 -04:00
parent bbb3232020
commit 565ce77652
No known key found for this signature in database
GPG Key ID: EC79465B0E865E47

View File

@ -23,9 +23,9 @@ local function wrapHTMLPanel( panelName )
local isAllowed = options and options.allowed
local logUrl = { url = url, status = isAllowed and "allowed" or "replaced" }
table.insert( logUrls, logUrl )
if not isAllowed then
table.insert( logUrls, logUrl )
return CFCHTTP.GetRedirectURL( url )
end
@ -52,8 +52,9 @@ local function wrapHTMLPanel( panelName )
local isAllowed = options and options.allowed
local logUrl = { url = url, status = isAllowed and "allowed" or "replaced" }
table.insert( logUrls, logUrl )
if not isAllowed then
table.insert( logUrls, logUrl )
return CFCHTTP.GetRedirectURL( url )
end