Skip to content
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

properly escape quotes in email addresses #5

Merged
merged 6 commits into from
Oct 22, 2024
Merged

properly escape quotes in email addresses #5

merged 6 commits into from
Oct 22, 2024

Conversation

@mwvolo mwvolo requested a review from Dantemss October 22, 2024 13:38
@mwvolo
Copy link
Member Author

mwvolo commented Oct 22, 2024

after this is merged, let's get master renamed to main

@mwvolo
Copy link
Member Author

mwvolo commented Oct 22, 2024

nvm, updated the PR when I renamed, all good

@mwvolo
Copy link
Member Author

mwvolo commented Oct 22, 2024

I'm having some specs fail locally re: quote escaping. Looking into it - hold off on merging.

@mwvolo mwvolo merged commit 581c145 into main Oct 22, 2024
1 check passed
@mwvolo mwvolo deleted the quote-escaping branch October 22, 2024 21:20
@@ -147,7 +147,7 @@
let(:quote_input){ "' OR Id!=NULL OR Id='" }
let(:backslash_input){ "\\" }
let(:number_input){ 123 }
let(:expected_query){ "SELECT Id FROM table_name WHERE (Backslash_Field__c = '\\\\' AND NumberField = 123 AND QuoteField = ''' OR Id!=NULL OR Id=''')" }
let(:expected_query){ "SELECT Id FROM table_name WHERE (Backslash_Field__c = '\\\\' AND NumberField = 123 AND QuoteField = '\\\' OR Id!=NULL OR Id=\\'')" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and line 164 should still give the same result if you use only 2 backslashes instead of 3

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed it does - i'll push an update

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just pushed to main - 3210375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants