-
Notifications
You must be signed in to change notification settings - Fork 333
SQSERVICES-1232 Prevent CSV Injection #2096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
98737ea
to
7efa102
Compare
|
||
unquoted :: ByteString -> ByteString | ||
unquoted bstr = case C.uncons bstr of | ||
Just ('\'', t) -> t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if there is more than one \'
in there?
_ -> False | ||
|
||
testQuotedProp :: TestTree | ||
testQuotedProp = testProperty "quoted" prop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"quoted arbitrary", for symmetry.
tests :: TestTree | ||
tests = | ||
testGroup | ||
"Export" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's really just about quoted, unquoted, so you could be more specific here.
https://wearezeta.atlassian.net/browse/SQSERVICES-1232
Checklist
changelog.d
.