Skip to content

Commit

Permalink
Fix injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
publicwhip committed Nov 16, 2008
1 parent 9d698f2 commit 1f7916c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/decodeids.inc
@@ -1,5 +1,5 @@
<?php
# $Id: decodeids.inc,v 1.46 2008/06/20 17:10:47 publicwhip Exp $
# $Id: decodeids.inc,v 1.47 2008/11/16 23:00:44 publicwhip Exp $

# The Public Whip, Copyright (C) 2005 Francis Irving and Julian Todd
# This is free software, and you are welcome to redistribute it under
Expand Down Expand Up @@ -278,6 +278,7 @@ function get_dreammpid_attr_decode($db, $i)
$dreammpid = db_scrub($_POST[$i]);
if ($dreammpid == "")
return null;
$dreammpid = intval($dreammpid);
$qselect = "SELECT pw_dyn_dreammp.name AS name, pw_dyn_dreammp.description AS description,
pw_dyn_user.user_id AS user_id, user_name,
votes_count, edited_motions_count,
Expand Down

0 comments on commit 1f7916c

Please sign in to comment.