ExpressionParserToNumericString Method |
Convert a supposedly numeric string into a validated numeric string. This method has two purposes:
- Convert likely non-numerics to valid numerics. In particular, null/empty string to zero, "false" to zero, "true" to one.
- Protect against possible SQL injection attack by converting supposedly numeric values that don't parse to zero.
In the case of an unexpected, non-parsable value, a simple SQL injection attack detection is performed and a
devlog and request log entry generated if a SQL injection attempt looks likely.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string ToNumericString(
string num
)
Public Shared Function ToNumericString (
num As String
) As String
Parameters
- num
- Type: SystemString
The numeric string to process.
Return Value
Type:
StringThe converted numeric string.
See Also