Changeset 2943291
- Timestamp:
- 07/25/2023 11:54:30 PM (3 years ago)
- Location:
- brightedge-autopilot/trunk
- Files:
-
- 6 edited
-
be_ixf_php_wp.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Controller.php (modified) (1 diff)
-
src/View.php (modified) (7 diffs)
-
src/be_ixf_client.php (modified) (8 diffs)
-
src/constants.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
brightedge-autopilot/trunk/be_ixf_php_wp.php
r2781524 r2943291 4 4 * Plugin URI: https://www.brightedge.com/ 5 5 * Description: Enables BrightEdge Autopilot on your Wordpress site. 6 * Version: 1.1. 96 * Version: 1.1.11 7 7 * Author: BrightEdge 8 8 * Author URI: https://www.brightedge.com/ -
brightedge-autopilot/trunk/readme.txt
r2781524 r2943291 6 6 Author: BrightEdge 7 7 Requires PHP: 5.5 8 Tested up to: 5.99 Version: 1.1. 98 Tested up to: 6.2.2 9 Version: 1.1.11 10 10 Copyright: BrightEdge Technologies, Inc. 11 11 License: www.brightedge.com/infrastructure-product-terms … … 25 25 26 26 == Changelog == 27 1.1.11 = 28 * Release date: July 13, 2023 29 30 **Update** 31 32 * Updated wordpress supported version to 6.2.2 and PHP version 8.2 33 34 = 1.1.10 = 35 * Release date: January 19, 2023 36 37 **Update** 38 39 * Handle potential security vulnerability in codebase 40 27 41 = 1.1.9 = 28 42 * Release date: July 28, 2022 -
brightedge-autopilot/trunk/src/Controller.php
r2285207 r2943291 100 100 add_action('wp_head', function() { 101 101 echo BEIXFConstants::WP_VERSION; 102 echo $this->be_ixf->getHeadOpen();102 echo html_entity_decode(wp_unslash($this->be_ixf->getHeadOpen())); 103 103 },1); 104 104 } -
brightedge-autopilot/trunk/src/View.php
r2781524 r2943291 93 93 public function ixfRenderBody1BlockAboveFooter(){ 94 94 if ($this->controller->ixf_data){ 95 echo $this->buildFooterScript($this->controller->ixf_data, BEIXFConstants::ABOVE_FOOTER);95 echo html_entity_decode(wp_unslash($this->buildFooterScript($this->controller->ixf_data, BEIXFConstants::ABOVE_FOOTER))); 96 96 } 97 97 … … 112 112 public function ixfRenderBody1BlockFirstElementInFooter(){ 113 113 if ($this->controller->ixf_data){ 114 echo $this->buildFooterScript($this->controller->ixf_data, BEIXFConstants::FIRST_ELEMENT_IN_FOOTER);114 echo html_entity_decode(wp_unslash($this->buildFooterScript($this->controller->ixf_data, BEIXFConstants::FIRST_ELEMENT_IN_FOOTER))); 115 115 } 116 116 … … 125 125 if(is_singular()){ 126 126 add_action('wp_footer',function() { 127 echo $this->controller->ixf_body_open_data;127 echo html_entity_decode(wp_unslash($this->controller->ixf_body_open_data)); 128 128 }, 99); 129 129 } … … 150 150 151 151 if (isset($this->controller->ixf_data)){ 152 echo $this->controller->ixf_data;152 echo html_entity_decode(wp_unslash($this->controller->ixf_data)); 153 153 } 154 154 … … 166 166 167 167 if (isset($this->controller->ixf_data)){ 168 echo $this->controller->ixf_data;168 echo html_entity_decode(wp_unslash($this->controller->ixf_data)); 169 169 } 170 170 … … 179 179 public function ixfRenderBody1BlockShortcode(){ 180 180 if (isset($this->controller->ixf_data)){ 181 echo $this->controller->ixf_data;181 echo html_entity_decode(wp_unslash($this->controller->ixf_data)); 182 182 } 183 183 } … … 185 185 public function ixfAddCloseBlock(){ 186 186 add_action('wp_footer',function() { 187 echo $this->controller->ixf_close_data;187 echo html_entity_decode(wp_unslash($this->controller->ixf_close_data)); 188 188 }, 100); 189 189 } -
brightedge-autopilot/trunk/src/be_ixf_client.php
r2781524 r2943291 32 32 } 33 33 34 // added to suppor drupal 10 / php 8.2 35 #[\AllowDynamicProperties] 34 36 class BEIXFClient implements BEIXFClientInterface { 35 37 public static $ENVIRONMENT_CONFIG = "sdk.environment"; … … 99 101 public static $DIAGNOSTIC_STRING_DISABLED = false; 100 102 103 public static $ALLOW_DEBUG_MODE_CONFIG = 'allow_debug'; 101 104 public static $ALLOW_DEBUG_MODE = true; 102 105 … … 136 139 public static $PRODUCT_NAME = "be_ixf"; 137 140 public static $CLIENT_NAME = "php_sdk"; 138 public static $CLIENT_VERSION = "1.5. 8";141 public static $CLIENT_VERSION = "1.5.11"; 139 142 140 143 private static $API_VERSION = "1.0.0"; … … 230 233 // Merge passed in params with defaults for config. 231 234 $this->config = array_merge($this->config, $params); 235 236 if (isset($this->config[self::$ALLOW_DEBUG_MODE_CONFIG])) { 237 self::$ALLOW_DEBUG_MODE = $this->config[self::$ALLOW_DEBUG_MODE_CONFIG]; 238 } 232 239 233 240 if (isset($this->config[self::$CAPSULE_MODE_CONFIG])) { … … 462 469 // Should cURL return or print out the data? (true = return, false = print) 463 470 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 464 // disable SSL certificate check465 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);466 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);467 471 // connect timeout in milliseconds 468 472 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, $connect_timeout); … … 1612 1616 date_default_timezone_set(self::$NORMALIZED_TIMEZONE); 1613 1617 // $sb .= strftime("${prefix}y_%Y; ${prefix}m_%m; ${prefix}d_%d; ${prefix}h_%H; ${prefix}mh_%M; ", $epochTimeInMillis / 1000); 1614 $sb .= date(" ${updated_prefix}\y_Y; ${updated_prefix}\m_m; ${updated_prefix}\d_d; ${updated_prefix}\h_H; ${updated_prefix}\m\h_i; ", intval($epochTimeInMillis / 1000));1615 $sb .= " ${prefix}_epoch:" . $epochTimeInMillis;1618 $sb .= date("{$updated_prefix}\y_Y; {$updated_prefix}\m_m; {$updated_prefix}\d_d; {$updated_prefix}\h_H; {$updated_prefix}\m\h_i; ", intval($epochTimeInMillis / 1000)); 1619 $sb .= "{$prefix}_epoch:" . $epochTimeInMillis; 1616 1620 return $sb; 1617 1621 } finally { … … 1635 1639 date_default_timezone_set(self::$NORMALIZED_TIMEZONE); 1636 1640 // $sb .= strftime("${prefix}ym_%Y%m ${prefix}d_%d; ", $epochTimeInMillis / 1000); 1637 $sb .= date(" ${updated_prefix}\y\m_Ym ${updated_prefix}\d_d; ", intval($epochTimeInMillis / 1000));1638 $sb .= " ${prefix}ct_" . IXFSDKUtils::roundUpElapsedTime($timer);1641 $sb .= date("{$updated_prefix}\y\m_Ym {$updated_prefix}\d_d; ", intval($epochTimeInMillis / 1000)); 1642 $sb .= "{$prefix}ct_" . IXFSDKUtils::roundUpElapsedTime($timer); 1639 1643 return $sb; 1640 1644 } finally { … … 1649 1653 date_default_timezone_set(self::$NORMALIZED_TIMEZONE); 1650 1654 // $sb .= strftime("${prefix}_tstr:%a %b %d %H:%M:%S PST %Y; ", $epochTimeInMillis / 1000); 1651 $sb .= " ${prefix}_" . date("\\t\\s\\t\\r:D M d H:i:s \P\S\T Y; ", intval($epochTimeInMillis / 1000));1652 $sb .= " ${prefix}_epoch:" . $epochTimeInMillis;1655 $sb .= "{$prefix}_" . date("\\t\\s\\t\\r:D M d H:i:s \P\S\T Y; ", intval($epochTimeInMillis / 1000)); 1656 $sb .= "{$prefix}_epoch:" . $epochTimeInMillis; 1653 1657 return $sb; 1654 1658 } finally { -
brightedge-autopilot/trunk/src/constants.php
r2781524 r2943291 5 5 class BEIXFConstants{ 6 6 // wordpress plugin version 7 const WP_VERSION = '<meta name="be:wp" content="1.1. 9">';7 const WP_VERSION = '<meta name="be:wp" content="1.1.11">'; 8 8 // account id 9 9 const ACCOUNT_ID = 'account_id';
Note: See TracChangeset
for help on using the changeset viewer.