Skip to content

Commit

Permalink
COLDBOX-1278 #resolve
Browse files Browse the repository at this point in the history
Remove unsafe evaluate function usage
  • Loading branch information
lmajano committed Apr 22, 2024
1 parent df1b1e0 commit 77a5881
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion tests/specs/web/context/eventhandlerBeanTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
this.ehbean.init( this.instance.invocationPath );

for ( var thisKey in this.instance ) {
evaluate( "this.ehBean.set#thisKey#( this.instance[ thisKey ] )" );
invoke( this.ehBean, "set#thisKey#", [ this.instance[ thisKey ] ] );
}
</cfscript>
</cffunction>
Expand Down
9 changes: 0 additions & 9 deletions tests/specs/web/context/exceptionBeanTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@

<!--- Begin specific tests --->

<cffunction name="testGetters" access="public" returnType="void">
<cfscript>
for ( key in this.instance ) {
evaluate( "this.e.get#key#()" );
}
</cfscript>
</cffunction>

<cffunction name="testgetmemento" access="public" returnType="void">
<cfscript>
assertTrue( isStruct( this.e.getMemento() ) );
Expand Down Expand Up @@ -169,4 +161,3 @@
</cfscript>
</cffunction>
</cfcomponent>

0 comments on commit 77a5881

Please sign in to comment.