dswitzer
02/22/2024, 3:45 PMlucee.security.limitEvaluation environment property, but it requires Lucee 5.4.5.8 or higher, which are currently only available as Snapshots.
Any idea when a production release of 5.4.5.x will be made?Sebastiaan Naafs - van Dijk
02/22/2024, 4:47 PMBrian Reilly
02/22/2024, 4:55 PMdswitzer
02/22/2024, 5:00 PMBrian Reilly
02/22/2024, 5:07 PMAndreas
02/26/2024, 4:10 PMdswitzer
02/26/2024, 4:14 PMdswitzer
02/26/2024, 4:15 PMAndreas
02/26/2024, 4:19 PMgert
02/26/2024, 4:21 PMBrian Reilly
02/26/2024, 4:30 PMisDefined(x[imageRead('something')]) for example, would test to see if x[imageRead('something')] existed, versus evaluating (executing) imageRead('something') and testing if x[_*OUTPUT_FROM_THAT_EVALUATED_RESULT]*_ existedBrian Reilly
02/26/2024, 4:31 PMAndreas
02/26/2024, 4:34 PMAndreas
02/26/2024, 4:41 PMdswitzer
02/26/2024, 4:47 PMisDefined("url.someVar") throws an error? Or does it mean something like isDefined('url.#someDynamicVar#') does not evaluate #someDynamicVar#?
I was under the assumption that it meant that when evaluating #someDynamicVar# it just wouldn't allow #someDynamicVar# to point to some other path so that it could not evaluate to something like ``isDefined('url.form.someVar')`` if #someDynamicVar# was equal to form.someVar.Brian Reilly
02/26/2024, 5:03 PMinvalid syntax, variables are not supported. exception -Brian Reilly
02/26/2024, 5:05 PMdswitzer
02/26/2024, 5:09 PM#variables.someVar#) or does it throw the same error.Brian Reilly
02/26/2024, 5:15 PMvariables.someVar = 'test'; - no exception
variables.someVar = 'test[x]'; - exceptionBrian Reilly
02/26/2024, 5:16 PMisValid('variableName',the.var) -- so that may be a way to go here, in terms of fixing any custom code -- in addition to enabling the Lucee setting to limit evaluationBrian Reilly
02/26/2024, 5:22 PMisDefined() with structKeyExists() may be better. I'm out of my depth in terms of code quality issues π