Skip to content

Commit

Permalink
Merge pull request #923 from PermaNulled/patch-1
Browse files Browse the repository at this point in the history
Fix SQLi in al_data->location
  • Loading branch information
ddpbsd authored Aug 18, 2016
2 parents f42e4d0 + 2145db5 commit 81852c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/os_dbd/alert.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ int OS_Alert_InsertDB(const alert_data *al_data, DBConfig *db_config)

/* Escape strings */
osdb_escapestr(al_data->user);

osdb_escapestr(al_data->location);

/* We first need to insert the location */
loc_id = (int *) OSHash_Get(db_config->location_hash, al_data->location);

Expand Down

0 comments on commit 81852c6

Please sign in to comment.