Fix preg_match fail
This commit is contained in:
@@ -14,7 +14,7 @@ function booking_partial_balance_page() {
|
||||
$partial_amount = arg(2);
|
||||
|
||||
//verify that arg(1) is a uuid
|
||||
if (! ('/^[0-9A-Fa-f\-]+$/', $temp_id)) {
|
||||
if (! preg_match('/^[0-9A-Fa-f\-]+$/', $temp_id)) {
|
||||
//parameter from url is not what we were expecting
|
||||
drupal_set_message("Error: Invalid session ID supplied to the partial payment page. Please use the contact us form to let us know.", 'error', FALSE);
|
||||
drupal_goto('<front>');
|
||||
@@ -22,7 +22,7 @@ function booking_partial_balance_page() {
|
||||
}
|
||||
|
||||
//verify that arg(2) is a number
|
||||
if (! ('/^[0-9]+$/', $partial_amount)) {
|
||||
if (! preg_match('/^[0-9]+$/', $partial_amount)) {
|
||||
drupal_set_message("Error: Invalid payment amount supplied to the partial payment page. Please use the contact us form to let us know.", 'error', FALSE);
|
||||
drupal_goto('<front>');
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user