Skip to content
Snippets Groups Projects
Commit b0c99a33 authored by JonGold's avatar JonGold Committed by mattwire
Browse files

avoid extra redirect; correctly show auth.net errors on failed transaction

parent c826ca8c
No related branches found
No related tags found
1 merge request!42avoid extra redirect; correctly show auth.net errors on failed transaction
Pipeline #1677 skipped
......@@ -280,7 +280,7 @@ trait CRM_Core_Payment_MJWTrait {
else {
$qfKey = $params->getCustomProperty('qfKey');
$parsedUrl = parse_url($params->getCustomProperty('entryURL'));
$urlPath = substr($parsedUrl['path'], 1);
$urlPath = trim($parsedUrl['path'], '/');
$query = $parsedUrl['query'];
if (strpos($query, '_qf_Main_display=1') === FALSE) {
$query .= '&_qf_Main_display=1';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment