Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rasseljandavid committed Jul 7, 2011
2 parents b354f0b + d08e5cd commit 86bbc23
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/formbuilder/actions/submit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,15 @@
// $emailValue = htmlspecialchars_decode(html_entity_decode(call_user_func(array($control_type,'parseData'),$c->name,$_POST,true),ENT_COMPAT,LANG_CHARSET));
$emailValue = htmlspecialchars_decode(call_user_func(array($control_type,'parseData'),$c->name,$_POST,true));
//$value = mysql_escape_string($emailValue);
$value = @mysql_real_escape_string($emailValue);

if (DB_ENGINE=='mysqli') {
$value = stripslashes(mysqli_real_escape_string($db->connection,$emailValue));
} elseif(DB_ENGINE=='mysql') {
$value = stripslashes(mysql_real_escape_string($emailValue,$db->connection));
} else {
$value = $emailValue;
}

//eDebug($value);
$varname = $c->name;
$db_data->$varname = $value;
Expand Down

0 comments on commit 86bbc23

Please sign in to comment.