Changeset 2671293
- Timestamp:
- 02/02/2022 12:48:41 PM (4 years ago)
- Location:
- whmcs-bridge/trunk
- Files:
-
- 5 edited
-
bridge.init.php (modified) (3 diffs)
-
bridge.php (modified) (1 diff)
-
includes/parser.inc.php (modified) (2 diffs)
-
includes/request.class.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
whmcs-bridge/trunk/bridge.init.php
r2667222 r2671293 4 4 if (!defined('WHMCS_BRIDGE_PAGE')) define('WHMCS_BRIDGE_PAGE','WHMCS'); 5 5 6 define("CC_WHMCS_BRIDGE_VERSION","6. 6b");6 define("CC_WHMCS_BRIDGE_VERSION","6.7b"); 7 7 8 8 if (!defined('PHP_VERSION_ID')) { … … 487 487 $cc_whmcs_bridge_to_include = "index"; 488 488 } 489 490 cc_whmcs_log(0, '[URL Init '.$ref.'] '.$cc_whmcs_bridge_to_include); 489 491 490 492 if ($cc_whmcs_bridge_to_include == "index" && !empty($_GET['gid']) && count($_GET) < 2) { … … 920 922 if (!empty($_GET)) { 921 923 foreach ($_GET as $k => $v) { 922 if (!in_array($k, $ignoreGets)) 923 $params[$k] = sanitize_text_field($v); 924 if (!in_array($k, $ignoreGets)) { 925 if (is_array($v)) { 926 foreach ($v as $kk => $vv) { 927 if (is_array($vv)) { 928 foreach ($vv as $kkk => $vvv) { 929 $params[$k][$kk][$kkk] = sanitize_text_field($vvv); 930 } 931 } else { 932 $params[$k][$kk] = sanitize_text_field($vv); 933 } 934 } 935 } else { 936 $params[$k] = sanitize_text_field($v); 937 } 938 } 924 939 } 925 940 } -
whmcs-bridge/trunk/bridge.php
r2667222 r2671293 5 5 Description: WHMCS Bridge is a plugin that integrates the powerful WHMCS support and billing software with WordPress. 6 6 Author: globalprogramming 7 Version: 6. 6b7 Version: 6.7b 8 8 Author URI: http://i-plugins.com/ 9 9 */ -
whmcs-bridge/trunk/includes/parser.inc.php
r2667222 r2671293 1331 1331 $redir = str_replace($whmcs, '', $redir); 1332 1332 1333 $redir = str_replace($folder, '', $redir); 1333 if ($folder != '/') 1334 $redir = str_replace($folder, '', $redir); 1334 1335 1335 1336 if (!get_option('cc_whmcs_bridge_permalinks')) … … 1337 1338 else 1338 1339 $return = $home.str_replace('.php', '', $redir); 1340 1341 $substr = stristr($return, '?', true); 1342 if ($substr !== false && substr($substr, -1) != '/') { 1343 $return = str_replace($substr, $substr.'/', $return); 1344 } 1339 1345 1340 1346 cc_whmcs_log(0, "RETURN: ".$return); -
whmcs-bridge/trunk/includes/request.class.php
r2667071 r2671293 243 243 } 244 244 245 $substr = stristr($url, '?', true); 246 if (stristr($url, '/store/') !== false && $substr !== false && substr($substr, -1) == "/") 247 $url = str_replace($substr, substr($substr, 0, -1), $url); 248 245 249 $this->debug(0, 'Not cached, processing file - '.$url); 246 250 … … 324 328 $apost = $this->generatePostArray(); 325 329 326 $this->debug(0, "Post data: ".print_r($apost, true));327 328 330 if (!empty($newfiles)) { 329 331 $http_args['method'] = 'POST'; … … 399 401 } 400 402 401 $this->debug(0, "Posting to {$url} with headers: ".json_encode($http_args['headers'])); 403 if (empty($http_args['method'])) 404 $http_args['method'] = 'GET'; 405 406 $this->debug(0, $http_args['method']." to {$url} with headers: ".json_encode($http_args['headers'])); 402 407 403 408 $http_args['redirection'] = 0; … … 604 609 } 605 610 611 $substr = stristr($newRedir, '?', true); 612 if ($substr !== false && substr($substr, -1) != '/') { 613 $newRedir = str_replace($substr, $substr.'/', $newRedir); 614 } 615 606 616 $this->debug(0, '[XX - '.$opt.'] New Redirect: ' . $newRedir . ' (' . $redir . ')'); 607 617 } else { … … 611 621 612 622 if ($redir != $newRedir || stristr($redir, '../viewinvoice')) { 623 $newRedir = urldecode($newRedir); 624 $this->debug(0, 'Header relocation '.$newRedir); 613 625 header('Location:' . $newRedir); 614 626 die(); -
whmcs-bridge/trunk/readme.txt
r2667222 r2671293 5 5 Requires at least: 5.0 6 6 Tested up to: 5.9 7 Stable tag: 6. 6b7 Stable tag: 6.7b 8 8 License: GPLv3 9 9 … … 77 77 78 78 == Changelog == 79 80 = 6.7b = 81 * Cart redirection issue fix 79 82 80 83 = 6.6b =
Note: See TracChangeset
for help on using the changeset viewer.