Skip to content

Commit

Permalink
Merge pull request #10 from mistergiri/master
Browse files Browse the repository at this point in the history
esc_sql handled by wpdb->prepare
  • Loading branch information
NomadDevs authored and NomadDevs committed Jul 16, 2015
2 parents c550750 + a34bb01 commit dd709cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/bp-compliments-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ function handle_compliments_form_data() {
}


$term_id = strip_tags(esc_sql($_POST['term_id']));
$term_id = strip_tags($_POST['term_id']);
// post id is required for geodirectory's whoop theme.
$post_id = strip_tags(esc_sql($_POST['post_id']));
$receiver_id = strip_tags(esc_sql($_POST['receiver_id']));
$message = strip_tags(esc_sql($_POST['message']));
$post_id = strip_tags($_POST['post_id']);
$receiver_id = strip_tags($_POST['receiver_id']);
$message = strip_tags($_POST['message']);
$args = array(
'term_id' => (int) $term_id,
'post_id' => (int) $post_id,
Expand Down

0 comments on commit dd709cf

Please sign in to comment.