Changeset 3399416
- Timestamp:
- 11/20/2025 06:10:24 AM (4 months ago)
- Location:
- accessibe
- Files:
-
- 8 edited
- 1 copied
-
tags/2.12 (copied) (copied from accessibe/trunk)
-
tags/2.12/accessibe.php (modified) (1 diff)
-
tags/2.12/accessiebe.php (modified) (5 diffs)
-
tags/2.12/class.accessibeforwp.php (modified) (12 diffs)
-
tags/2.12/readme.txt (modified) (2 diffs)
-
trunk/accessibe.php (modified) (1 diff)
-
trunk/accessiebe.php (modified) (5 diffs)
-
trunk/class.accessibeforwp.php (modified) (12 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
accessibe/tags/2.12/accessibe.php
r3376235 r3399416 4 4 * Plugin URI: https://accessibe.com/ 5 5 * Description: accessiBe is the #1 fully automated web accessibility solution. Protect your website from lawsuits and increase your potential audience. 6 * Version: 2.1 16 * Version: 2.12 7 7 * Author: accessiBe 8 8 * Author URI: https://accessibe.com/ -
accessibe/tags/2.12/accessiebe.php
r3237954 r3399416 15 15 16 16 // Hook into WordPress after it has loaded fully 17 add_action('plugins_loaded', ' handle_plugin_upgrade');17 add_action('plugins_loaded', 'accessibe_handle_plugin_upgrade'); 18 18 19 function handle_plugin_upgrade() {19 function accessibe_handle_plugin_upgrade() { 20 20 $old = 'accessiebe.php'; 21 21 $new = 'accessibe.php'; … … 42 42 update_option('active_plugins', $active_plugins); 43 43 44 track_plugin_upgrade();44 accessibe_track_plugin_upgrade(); 45 45 } 46 46 } 47 47 48 function track_plugin_upgrade() {49 $uuid = generateUuidV4();48 function accessibe_track_plugin_upgrade() { 49 $uuid = accessibe_generateUuidV4(); 50 50 $current_user = wp_get_current_user(); 51 51 … … 60 60 '$device_id' => $uuid, 61 61 'pluginVersion' => accessibe_get_plugin_version(), 62 'wordpressStoreName' => sanitizeDomain(wp_parse_url(site_url())['host']),62 'wordpressStoreName' => accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 63 63 'wordpressPluginVersionNumber' => accessibe_get_plugin_version(), 64 64 'wordpressAccountUserID' => $current_user->ID, … … 75 75 } 76 76 77 function generateUuidV4() {77 function accessibe_generateUuidV4() { 78 78 $data = random_bytes(16); 79 79 … … 85 85 } 86 86 87 function sanitizeDomain($domain) {87 function accessibe_sanitizeDomain($domain) { 88 88 // Use regex to replace "www." only at the beginning 89 89 return preg_replace("/^www\./", "", strtolower($domain)); -
accessibe/tags/2.12/class.accessibeforwp.php
r3376235 r3399416 199 199 public static function accessibe_render_js_in_footer() { 200 200 $accessibe_options = self::accessibe_get_options(); 201 $current_domain = self:: sanitizeDomain(wp_parse_url(site_url())['host']);201 $current_domain = self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']); 202 202 // $current_domain = '9cc3-2405-201-5c0f-d070-14fd-b303-b02-1999.ngrok-free.app'; 203 203 … … 205 205 || (isset($accessibe_options['accessibe']) && 'enabled' != $accessibe_options['accessibe'] && (!isset($accessibe_options['script']) || !isset($accessibe_options['script'][$current_domain]))) 206 206 || (isset($accessibe_options["script"][$current_domain]) && $accessibe_options["script"][$current_domain]['widgetStatus'] != true)) { 207 echo "<script>console.log(".wp_json_encode( $accessibe_options).")</script>";207 echo "<script>console.log(".wp_json_encode("acsb not injected").")</script>"; 208 208 } 209 209 … … 331 331 'email' => $user_email, 332 332 'fullName' => $display_name, 333 'storeId' => self:: sanitizeDomain(wp_parse_url(site_url())['host']),333 'storeId' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 334 334 'wapperApp' => array( 335 335 'name' => 'WordPress', … … 337 337 ), 338 338 'mixpanelProps' => array ( 339 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']),339 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 340 340 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 341 341 'wordpressAccountUserID' => absint($current_user->ID), … … 365 365 public static function get_current_domain() { 366 366 $current_domain = wp_parse_url(site_url())['host']; 367 return self:: sanitizeDomain($current_domain);367 return self::accessibe_sanitizeDomain($current_domain); 368 368 } 369 369 … … 635 635 } // accessibe_admin_footer_text 636 636 637 public static function sanitizeDomain($domain) {637 public static function accessibe_sanitizeDomain($domain) { 638 638 // Use regex to replace "www." only at the beginning 639 639 return preg_replace("/^www\./", "", strtolower($domain)); 640 } // sanitizeDomain640 } // accessibe_sanitizeDomain 641 641 642 642 … … 712 712 }// accessibe_get_options 713 713 714 public static function generateUuidV4() {714 public static function accessibe_generateUuidV4() { 715 715 $data = random_bytes(16); 716 716 … … 909 909 910 910 if(!isset($current_data['acsbUserId']) && !isset($current_data['mixpanelUUID'])) { 911 $uuid = self:: generateUuidV4();911 $uuid = self::accessibe_generateUuidV4(); 912 912 $current_data['mixpanelUUID'] = $uuid; 913 913 } … … 918 918 919 919 if(isset($current_data['acsbUserId'])) { 920 $mixpanelHandler->trackEvent('pluginUpgraded', ['userId' => $current_data['acsbUserId'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);920 $mixpanelHandler->trackEvent('pluginUpgraded', ['userId' => $current_data['acsbUserId'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 921 921 } 922 922 else { 923 $mixpanelHandler->trackEvent('pluginUpgraded', ['$device_id' => $current_data['mixpanelUUID'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);923 $mixpanelHandler->trackEvent('pluginUpgraded', ['$device_id' => $current_data['mixpanelUUID'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 924 924 } 925 925 update_option(ACCESSIBE_WP_OPTIONS_KEY, json_encode($current_data)); … … 950 950 $data_to_check = self::accessibe_get_options(); 951 951 if(empty($data_to_check)) { 952 $uuid = self:: generateUuidV4();952 $uuid = self::accessibe_generateUuidV4(); 953 953 $current_user = wp_get_current_user(); 954 954 $mixpanelHandler = new MixpanelHandler(); 955 $mixpanelHandler->trackEvent('pluginInstalled', ['$device_id' => $uuid, 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);955 $mixpanelHandler->trackEvent('pluginInstalled', ['$device_id' => $uuid, 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 956 956 $current_data['mixpanelUUID'] = $uuid; 957 957 $current_data['pluginVersion'] = self::accessibe_get_plugin_version() . ''; … … 965 965 966 966 if(!isset($current_data['acsbUserId']) && !isset($current_data['mixpanelUUID'])) { 967 $uuid = self:: generateUuidV4();967 $uuid = self::accessibe_generateUuidV4(); 968 968 $current_data['mixpanelUUID'] = $uuid; 969 969 } … … 971 971 $mixpanelHandler = new MixpanelHandler(); 972 972 if(isset($current_data['acsbUserId'])) { 973 $mixpanelHandler->trackEvent('pluginUninstalled', ['userId' => $current_data['acsbUserId'], 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);973 $mixpanelHandler->trackEvent('pluginUninstalled', ['userId' => $current_data['acsbUserId'], 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 974 974 } 975 975 else { 976 $mixpanelHandler->trackEvent('pluginUninstalled', ['$device_id' => $current_data['mixpanelUUID'], 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);976 $mixpanelHandler->trackEvent('pluginUninstalled', ['$device_id' => $current_data['mixpanelUUID'], 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 977 977 } 978 978 delete_option(ACCESSIBE_WP_OPTIONS_KEY); -
accessibe/tags/2.12/readme.txt
r3376235 r3399416 4 4 Requires at least: 4.7 5 5 Tested up to: 6.8 6 Stable tag: 2.1 16 Stable tag: 2.12 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 68 68 69 69 == Changelog == 70 = v2.12 = 71 * 2025-11-20 72 * vulnerability fixes 73 70 74 = v2.11 = 71 75 * 2025-10-10 -
accessibe/trunk/accessibe.php
r3376235 r3399416 4 4 * Plugin URI: https://accessibe.com/ 5 5 * Description: accessiBe is the #1 fully automated web accessibility solution. Protect your website from lawsuits and increase your potential audience. 6 * Version: 2.1 16 * Version: 2.12 7 7 * Author: accessiBe 8 8 * Author URI: https://accessibe.com/ -
accessibe/trunk/accessiebe.php
r3237954 r3399416 15 15 16 16 // Hook into WordPress after it has loaded fully 17 add_action('plugins_loaded', ' handle_plugin_upgrade');17 add_action('plugins_loaded', 'accessibe_handle_plugin_upgrade'); 18 18 19 function handle_plugin_upgrade() {19 function accessibe_handle_plugin_upgrade() { 20 20 $old = 'accessiebe.php'; 21 21 $new = 'accessibe.php'; … … 42 42 update_option('active_plugins', $active_plugins); 43 43 44 track_plugin_upgrade();44 accessibe_track_plugin_upgrade(); 45 45 } 46 46 } 47 47 48 function track_plugin_upgrade() {49 $uuid = generateUuidV4();48 function accessibe_track_plugin_upgrade() { 49 $uuid = accessibe_generateUuidV4(); 50 50 $current_user = wp_get_current_user(); 51 51 … … 60 60 '$device_id' => $uuid, 61 61 'pluginVersion' => accessibe_get_plugin_version(), 62 'wordpressStoreName' => sanitizeDomain(wp_parse_url(site_url())['host']),62 'wordpressStoreName' => accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 63 63 'wordpressPluginVersionNumber' => accessibe_get_plugin_version(), 64 64 'wordpressAccountUserID' => $current_user->ID, … … 75 75 } 76 76 77 function generateUuidV4() {77 function accessibe_generateUuidV4() { 78 78 $data = random_bytes(16); 79 79 … … 85 85 } 86 86 87 function sanitizeDomain($domain) {87 function accessibe_sanitizeDomain($domain) { 88 88 // Use regex to replace "www." only at the beginning 89 89 return preg_replace("/^www\./", "", strtolower($domain)); -
accessibe/trunk/class.accessibeforwp.php
r3376235 r3399416 199 199 public static function accessibe_render_js_in_footer() { 200 200 $accessibe_options = self::accessibe_get_options(); 201 $current_domain = self:: sanitizeDomain(wp_parse_url(site_url())['host']);201 $current_domain = self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']); 202 202 // $current_domain = '9cc3-2405-201-5c0f-d070-14fd-b303-b02-1999.ngrok-free.app'; 203 203 … … 205 205 || (isset($accessibe_options['accessibe']) && 'enabled' != $accessibe_options['accessibe'] && (!isset($accessibe_options['script']) || !isset($accessibe_options['script'][$current_domain]))) 206 206 || (isset($accessibe_options["script"][$current_domain]) && $accessibe_options["script"][$current_domain]['widgetStatus'] != true)) { 207 echo "<script>console.log(".wp_json_encode( $accessibe_options).")</script>";207 echo "<script>console.log(".wp_json_encode("acsb not injected").")</script>"; 208 208 } 209 209 … … 331 331 'email' => $user_email, 332 332 'fullName' => $display_name, 333 'storeId' => self:: sanitizeDomain(wp_parse_url(site_url())['host']),333 'storeId' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 334 334 'wapperApp' => array( 335 335 'name' => 'WordPress', … … 337 337 ), 338 338 'mixpanelProps' => array ( 339 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']),339 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 340 340 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 341 341 'wordpressAccountUserID' => absint($current_user->ID), … … 365 365 public static function get_current_domain() { 366 366 $current_domain = wp_parse_url(site_url())['host']; 367 return self:: sanitizeDomain($current_domain);367 return self::accessibe_sanitizeDomain($current_domain); 368 368 } 369 369 … … 635 635 } // accessibe_admin_footer_text 636 636 637 public static function sanitizeDomain($domain) {637 public static function accessibe_sanitizeDomain($domain) { 638 638 // Use regex to replace "www." only at the beginning 639 639 return preg_replace("/^www\./", "", strtolower($domain)); 640 } // sanitizeDomain640 } // accessibe_sanitizeDomain 641 641 642 642 … … 712 712 }// accessibe_get_options 713 713 714 public static function generateUuidV4() {714 public static function accessibe_generateUuidV4() { 715 715 $data = random_bytes(16); 716 716 … … 909 909 910 910 if(!isset($current_data['acsbUserId']) && !isset($current_data['mixpanelUUID'])) { 911 $uuid = self:: generateUuidV4();911 $uuid = self::accessibe_generateUuidV4(); 912 912 $current_data['mixpanelUUID'] = $uuid; 913 913 } … … 918 918 919 919 if(isset($current_data['acsbUserId'])) { 920 $mixpanelHandler->trackEvent('pluginUpgraded', ['userId' => $current_data['acsbUserId'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);920 $mixpanelHandler->trackEvent('pluginUpgraded', ['userId' => $current_data['acsbUserId'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 921 921 } 922 922 else { 923 $mixpanelHandler->trackEvent('pluginUpgraded', ['$device_id' => $current_data['mixpanelUUID'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);923 $mixpanelHandler->trackEvent('pluginUpgraded', ['$device_id' => $current_data['mixpanelUUID'], 'pluginVersion' => $latest_version, 'previousPluginVersion' => $previous_version, 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 924 924 } 925 925 update_option(ACCESSIBE_WP_OPTIONS_KEY, json_encode($current_data)); … … 950 950 $data_to_check = self::accessibe_get_options(); 951 951 if(empty($data_to_check)) { 952 $uuid = self:: generateUuidV4();952 $uuid = self::accessibe_generateUuidV4(); 953 953 $current_user = wp_get_current_user(); 954 954 $mixpanelHandler = new MixpanelHandler(); 955 $mixpanelHandler->trackEvent('pluginInstalled', ['$device_id' => $uuid, 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);955 $mixpanelHandler->trackEvent('pluginInstalled', ['$device_id' => $uuid, 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 956 956 $current_data['mixpanelUUID'] = $uuid; 957 957 $current_data['pluginVersion'] = self::accessibe_get_plugin_version() . ''; … … 965 965 966 966 if(!isset($current_data['acsbUserId']) && !isset($current_data['mixpanelUUID'])) { 967 $uuid = self:: generateUuidV4();967 $uuid = self::accessibe_generateUuidV4(); 968 968 $current_data['mixpanelUUID'] = $uuid; 969 969 } … … 971 971 $mixpanelHandler = new MixpanelHandler(); 972 972 if(isset($current_data['acsbUserId'])) { 973 $mixpanelHandler->trackEvent('pluginUninstalled', ['userId' => $current_data['acsbUserId'], 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);973 $mixpanelHandler->trackEvent('pluginUninstalled', ['userId' => $current_data['acsbUserId'], 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 974 974 } 975 975 else { 976 $mixpanelHandler->trackEvent('pluginUninstalled', ['$device_id' => $current_data['mixpanelUUID'], 'wordpressStoreName' => self:: sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]);976 $mixpanelHandler->trackEvent('pluginUninstalled', ['$device_id' => $current_data['mixpanelUUID'], 'wordpressStoreName' => self::accessibe_sanitizeDomain(wp_parse_url(site_url())['host']), 'wordpressPluginVersionNumber' => self::accessibe_get_plugin_version() . '', 'wordpressAccountUserID' => $current_user->ID, 'wordpressUserEmail' => $current_user->user_email, 'wordpressUsername' => $current_user->user_login ]); 977 977 } 978 978 delete_option(ACCESSIBE_WP_OPTIONS_KEY); -
accessibe/trunk/readme.txt
r3376235 r3399416 4 4 Requires at least: 4.7 5 5 Tested up to: 6.8 6 Stable tag: 2.1 16 Stable tag: 2.12 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 68 68 69 69 == Changelog == 70 = v2.12 = 71 * 2025-11-20 72 * vulnerability fixes 73 70 74 = v2.11 = 71 75 * 2025-10-10
Note: See TracChangeset
for help on using the changeset viewer.