Skip to content

Commit

Permalink
Fixed|Web: Escape query parameter
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
skyjake committed Mar 26, 2017
1 parent 793a6c6 commit b79cb55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapi/1/include/database.inc.php
Expand Up @@ -70,6 +70,7 @@ function build_type_from_text($text)

function db_get_platform($db, $platform)
{
$platform = $db->real_escape_string($platform);
$result = db_query($db, "SELECT * FROM ".DB_TABLE_PLATFORMS
." WHERE platform='$platform'");
return $result->fetch_assoc();
Expand Down

0 comments on commit b79cb55

Please sign in to comment.