Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Validation to prevent SQL injection.
Browse files Browse the repository at this point in the history
git-svn-id: https://plugins.svn.wordpress.org/cp-appointment-calendar/trunk@1088427 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
codepeople committed Feb 12, 2015
1 parent 14ee0e9 commit e29a9cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dex_appointments.php
Expand Up @@ -340,6 +340,8 @@ function dex_process_ready_to_go_appointment($itemnumber, $payer_email = "")
{
global $wpdb;

$itemnumber = intval($itemnumber);

$myrows = $wpdb->get_results( "SELECT * FROM ".DEX_APPOINTMENTS_TABLE_NAME." WHERE id=".$itemnumber );

$SYSTEM_EMAIL = get_option('notification_from_email', DEX_APPOINTMENTS_DEFAULT_PAYPAL_EMAIL);
Expand Down

0 comments on commit e29a9cd

Please sign in to comment.