Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix SQLi in location api #654
* Removes Location_MOdel::get_locations since it better to use ORM * Filter locations by location_visible * Sanitize location id (automatic thanks to query builder/ORM) * Slight change to JSON response, but should be backwards compatible * Now returns lat/long/id as numbers not strings * Now return name and location_name * Response now includes location_date
- Loading branch information
Showing
2 changed files
with
11 additions
and
57 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