You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
-g
committed
fix(query): reject reserved encoded-query characters in condition values
Condition values were written into the encoded query verbatim, so a value
containing ^, ,, or @ could break out of its term and append arbitrary
clauses to sysparm_query (encoded-query injection).
ServiceNow encoded queries provide no escape sequence for these structural
characters, so values are now validated at construction time: a rejected
value yields an error Condition that surfaces through the existing
Error() channel and propagates via And()/Or(). Internally composed date
literals (OnSpecialty, JS, NewDateTimeValue) keep their intentional @ /
javascript: separators and bypass validation.
Fixes#645
0 commit comments