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

"%" sign in SQL data source would be escaped #66

Merged
merged 1 commit into from
Oct 5, 2017
Merged

"%" sign in SQL data source would be escaped #66

merged 1 commit into from
Oct 5, 2017

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Sep 29, 2017

[Submitted by B. Marchal, univ. Lorraine] When using '%' symbol in SQL data sources, said % was ignored because it was interpolated in subsequent sprintf. Fixed by escaping % sign.

data sources, said % was ignored because it was interpolated in
subsequent sprintf. Fixed by escaping % sign.
@racke
Copy link
Contributor

racke commented Sep 29, 2017

👍

@ikedas ikedas mentioned this pull request Oct 1, 2017
@ikedas
Copy link
Member Author

ikedas commented Oct 2, 2017

Using do_prepared_query() seems preferred (See a diff above).

Reminder: Change is incompatible. Previously some people got over by duplicating "%" in sql_query parameter. We should note this change in release note.

@ikedas ikedas added this to the 6.2.24 milestone Oct 2, 2017
@ikedas ikedas merged commit 1377be2 into sympa-6.2 Oct 5, 2017
ikedas added a commit that referenced this pull request Oct 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants