Skip to content

Commit

Permalink
Update code/controllers/subsystem/voting/poll_types.dm
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander V. <volas@ya.ru>
  • Loading branch information
KandreyKandrey and volas committed Aug 8, 2023
1 parent 8f4bd69 commit 9f1ec17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/voting/poll_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
if(!establish_db_connection("erro_round"))
return FALSE
var/list/voteweights = list()
var/DBQuery/select_query = dbcon.NewQuery("SELECT map_name FROM erro_round WHERE server_port = [world.port] ORDER BY id DESC LIMIT 10")
var/DBQuery/select_query = dbcon.NewQuery("SELECT map_name FROM erro_round WHERE server_port = [sanitize_sql(world.port)] ORDER BY id DESC LIMIT 10")
select_query.Execute()
var/map_name = ""
while(select_query.NextRow())
Expand Down

0 comments on commit 9f1ec17

Please sign in to comment.