Script plugin fails if a backslash is present in the string

book

Article ID: 169608

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

​Network Discover scan target for SQL databases contains backslashes as a part of the item scanned.
Returning these values to a script based lookup in python may cause a failure to provide accurate values. Example error:
passing the field to the script was blocked because the string contains a \

Cause

"Enable Stdin" option within the Script Lookup has been enabled.
This option is used to perform input validation for the scripts and throw errors for unescapped characters.

Resolution

Disable "Enable Stdin" option from the Script Lookup to allow all characters to pass without validation.