From 77a5881ba3be3daf9082946e002570dabe33e7ed Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Mon, 22 Apr 2024 10:39:59 +0200 Subject: [PATCH] COLDBOX-1278 #resolve Remove unsafe evaluate function usage --- tests/specs/web/context/eventhandlerBeanTest.cfc | 2 +- tests/specs/web/context/exceptionBeanTest.cfc | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/specs/web/context/eventhandlerBeanTest.cfc b/tests/specs/web/context/eventhandlerBeanTest.cfc index bf6f95984..348b17cdf 100755 --- a/tests/specs/web/context/eventhandlerBeanTest.cfc +++ b/tests/specs/web/context/eventhandlerBeanTest.cfc @@ -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 ] ] ); } diff --git a/tests/specs/web/context/exceptionBeanTest.cfc b/tests/specs/web/context/exceptionBeanTest.cfc index 20c9cc9cc..3184125fe 100755 --- a/tests/specs/web/context/exceptionBeanTest.cfc +++ b/tests/specs/web/context/exceptionBeanTest.cfc @@ -58,14 +58,6 @@ - - - for ( key in this.instance ) { - evaluate( "this.e.get#key#()" ); - } - - - assertTrue( isStruct( this.e.getMemento() ) ); @@ -169,4 +161,3 @@ -