Skip to content

Commit

Permalink
fix security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hillaryungson committed May 28, 2015
1 parent a1bd4d4 commit f47c639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/module.lead-splash.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
$matches = array();
preg_match('/wp-admin/', $_SERVER['HTTP_REFERER'], $matches, null, 0);

$lead_id = $_GET['lead_id'];
$page_id = $_GET['post_id'];
$lead_id = preg_replace('/[^-a-zA-Z0-9_]/', '', $_GET['lead_id']);
$page_id = preg_replace('/[^-a-zA-Z0-9_]/', '', $_GET['post_id']);
$wplead_data = get_post_custom($lead_id);

$data['lead_id'] = $lead_id;
Expand Down

0 comments on commit f47c639

Please sign in to comment.