forked from LibriVox/librivox-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No SQL injection in Poject_model.php
Avoid potential SQL injections by either: - ensuring all raw SQL query strings are passed through $this->db->escape() - using parametrized queries of the form $this->db->query($sql, <params>) The following unused functions are removed: - get_projects_summary() - get_projects_by_author_status() There's also a _search_all_terms() that is called only once, and is implemented weirdly. Inline it, and use the correct $this->db->like() syntax.
- Loading branch information
Showing
4 changed files
with
115 additions
and
201 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.