Skip to content

Commit 8ce72c5

Browse files
authored
Merge pull request #23 from michaelborn/patch/security-visualizer-acf2018-syntax-error
Fix(visualizer): Fix ACF18 syntax error in settings visualizer YUCK!! Please report this to Adobe!
2 parents dc4ac4a + 1ada9a0 commit 8ce72c5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

views/home/settings.cfm

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
<cfscript>
2+
globalSettings = prc.properties.filter( function( key ){
3+
return !listFindNoCase( "rules,jwt", key );
4+
} );
5+
jwtSettings = prc.properties.jwt.filter( function( key ){
6+
return !listFindNoCase( "secretKey", key );
7+
} );
8+
</cfscript>
19
<cfoutput>
210
<div class="mt-2">
311

412
<p>Here is a listing of the settings for the global interceptor <code>cbsecurity@global</code>:</p>
513

6-
<cfdump var="#prc.properties.filter( function( key ){
7-
return !listFindNoCase( "rules,jwt", key );
8-
} )#">
14+
<cfdump var="#globalSettings#">
915

1016
<h2>JWT Settings</h2>
1117
<p>Here are your settings for your Json Web Tokens Security. Please note your <code>secretKey</code> is not shown.</p>
12-
<cfdump var="#prc.properties.jwt.filter( function( key ){
13-
return !listFindNoCase( "secretKey", key );
14-
} )#">
18+
<cfdump var="#jwtSettings#">
1519

1620
</div>
1721
</cfoutput>

0 commit comments

Comments
 (0)