Hi, I'm trying to filter an array based on user input, and assign the result:
<@ASSIGN NAME="array_contains_input" SCOPE="request" VALUE="<@FILTER ARRAY='request$some_array' EXPR='#1 = <@VAR request$untrusted_input>'>"> If the untrusted input contains ' (single quote) or " (double quote) or both, the application errors out with "Error during expression evaluation." I assume it's because the quote mark in the input is being parsed as part of the meta tag. Is there any way to encode the untrusted input so that if it contains single or double quotes it will not interrupt the expression parsing, but would still be accurately compared in the expression? This code is running on: TeraScript Server Advanced 7.0.3.0 Mac OS X (32-bit) Thanks, -Ian ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
