enhanced logging for invalid tempid token
This commit is contained in:
@@ -14,6 +14,7 @@ function booking_balance_page() {
|
|||||||
//verify that arg(1) is a uuid
|
//verify that arg(1) is a uuid
|
||||||
if (! preg_match('/^[0-9A-Fa-f\-]+$/', arg(1))) {
|
if (! preg_match('/^[0-9A-Fa-f\-]+$/', arg(1))) {
|
||||||
//parameter from url is not what we were expecting
|
//parameter from url is not what we were expecting
|
||||||
|
watchdog('booking', "Invalid token supplied to the balance payment page.");
|
||||||
drupal_set_message("Error: Invalid token supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE);
|
drupal_set_message("Error: Invalid token supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE);
|
||||||
drupal_goto('<front>');
|
drupal_goto('<front>');
|
||||||
return "";
|
return "";
|
||||||
@@ -47,6 +48,9 @@ function booking_balance_page() {
|
|||||||
//maximum length for invoice id in paypal is 127 characters so truncate if necessary
|
//maximum length for invoice id in paypal is 127 characters so truncate if necessary
|
||||||
$invoiceid = substr($invoiceid, 0, 126);
|
$invoiceid = substr($invoiceid, 0, 126);
|
||||||
} else {
|
} else {
|
||||||
|
watchdog('booking', "<pre>Unmatched token supplied to the balance payment page:\n@info</pre>", array(
|
||||||
|
'@info' => print_r(arg(1), true)
|
||||||
|
));
|
||||||
drupal_set_message("Error: Invalid token supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE);
|
drupal_set_message("Error: Invalid token supplied to the balance payment page. Please use the contact us form to let us know.", 'error', FALSE);
|
||||||
drupal_goto('<front>');
|
drupal_goto('<front>');
|
||||||
return "";
|
return "";
|
||||||
|
Reference in New Issue
Block a user