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

Modified DashboardController.php's actionAccomplishment function to prevent potential SQL injection attacks #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieldanila
Copy link

Added parameterized query by replacing direct inclusion of variables ($thisyear, $user, $category_id) in the SQL query with placeholders (:thisyear, :user, :category_id) and used bindValue to bind PHP variables to the query's placeholders.

…revent potential SQL injection attacks

Added parameterized query by replacing direct inclusion of variables ($thisyear, $user, $category_id) in the SQL query with placeholders (:thisyear, :user, :category_id) and used bindValue to bind PHP variables to the query's placeholders.
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.

1 participant