Skip to content

Commit

Permalink
Fix SQL injection vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejagodzinski committed Nov 30, 2014
1 parent 49ac5b4 commit b9de907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/data_access/RemoteHtmlContentDataAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function getForUser($userId) {
}

public static function getByName($name) {
return self::getForQueryString("SELECT * FROM \"DevNewsAggregatorConfiguration_htmlcontent\" WHERE name = $name");
return self::getForQueryString("SELECT * FROM \"DevNewsAggregatorConfiguration_htmlcontent\" WHERE name = $1", array($name));
}

private static function getForQueryString($query, $params=array()) {
Expand Down

0 comments on commit b9de907

Please sign in to comment.