Skip to content

Commit

Permalink
Prevent blind SQL injection
Browse files Browse the repository at this point in the history
The fight lives on
  • Loading branch information
nitriques committed Aug 7, 2017
1 parent 81508c0 commit de98edd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions symphony/lib/toolkit/class.sectionmanager.php
Expand Up @@ -215,6 +215,7 @@ public static function fetch($section_id = null, $order = 'ASC', $sortfield = 'n
*/
public static function fetchIDFromHandle($handle)
{
$handle = Symphony::Database()->cleanValue($handle);
return Symphony::Database()->fetchVar('id', 0, "SELECT `id` FROM `tbl_sections` WHERE `handle` = '$handle' LIMIT 1");
}

Expand Down

0 comments on commit de98edd

Please sign in to comment.