Messenger: Fixed the issue of Non-Parameterised input#2119
Open
ali-ichk wants to merge 3 commits into
Open
Conversation
…s as parameters to the SQL Query
SKuipers
reviewed
Jun 22, 2026
|
|
||
| $inClause = implode(',', $placeholders); | ||
|
|
||
| $sqlFamily="SELECT DISTINCT gibbonFamilyID FROM gibbonFamilyChild WHERE gibbonPersonID IN ($inClause)" ; |
Member
There was a problem hiding this comment.
@ali-ichk You're making progress, but the goal is to ensure there are no variables inserted into the SQL statement, so the $inClause itself should be a parameter, and the imploded string is passed into the data array. Check your code complexity, there should be a bit cleaner way to implement this, thanks.
…ue of parameterising variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixed the issue of Non-Parameterised input