Fix preg_match fail

This commit is contained in:
2014-12-01 23:06:39 +11:00
parent 57a7704e62
commit 51bc775664
13 changed files with 38 additions and 38 deletions

View File

@@ -12,7 +12,7 @@ function booking_balance_page() {
$paypal_form = "";
//verify that arg(1) is a uuid
if (! ('/^[0-9A-Fa-f\-]+$/', arg(1))) {
if (! preg_match('/^[0-9A-Fa-f\-]+$/', arg(1))) {
//parameter from url is not what we were expecting
drupal_set_message("Error: Invalid session ID supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE);
drupal_goto('<front>');