Changeset 3748383
- Timestamp:
- 10/15/2026 12:02:47 PM (3 days ago)
- Location:
- aanya-ai-chatbot
- Files:
-
- 2 added
- 6 edited
- 1 copied
-
tags/1.1.12 (copied) (copied from aanya-ai-chatbot/trunk )
-
tags/1.1.12/aanya-chatbot.php (modified) (4 diffs)
-
tags/1.1.12/admin/class-admin-settings.php (modified) (3 diffs)
-
tags/1.1.12/includes/class-install-path.php (added)
-
tags/1.1.12/readme.txt (modified) (3 diffs)
-
trunk/aanya-chatbot.php (modified) (4 diffs)
-
trunk/admin/class-admin-settings.php (modified) (3 diffs)
-
trunk/includes/class-install-path.php (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aanya-ai-chatbot/tags/1.1.12/aanya-chatbot.php
r3748273 r3748383 4 4 * Plugin URI: https://www.aanya.ai 5 5 * Description: Adds the AANYA AI chat widget to your WordPress site. Manage chatbot settings natively in WP Admin. Optional WooCommerce catalog/order sync. 6 * Version: 1.1.1 06 * Version: 1.1.12 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 31 31 32 32 if ( ! defined( 'AANYA_CHATBOT_VERSION' ) ) { 33 define( 'AANYA_CHATBOT_VERSION', '1.1.1 0' );33 define( 'AANYA_CHATBOT_VERSION', '1.1.12' ); 34 34 } 35 35 if ( ! defined( 'AANYA_CHATBOT_PLUGIN_FILE' ) ) { … … 88 88 require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-connection.php'; 89 89 require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-api-client.php'; 90 require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-install-path.php'; 90 91 require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-studio.php'; 91 92 require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-settings.php'; … … 102 103 */ 103 104 function aanya_chatbot_init() { 105 Aanya_Install_Path::boot(); 104 106 new Aanya_Admin_Settings(); 105 107 new Aanya_Widget_Loader(); -
aanya-ai-chatbot/tags/1.1.12/admin/class-admin-settings.php
r3748273 r3748383 199 199 * Authorize URL — full page on aanya.ai. 200 200 * 201 * CSRF for this OAuth-style flow is the one-time `state` transient (not a WP 202 * nonce in return_url). External redirects often drop or invalidate `_wpnonce`. 203 * 201 204 * @return string 202 205 */ … … 204 207 $state = $this->create_connect_state(); 205 208 206 // Include a WP nonce in return_url (preserved by AANYA when redirecting back).207 209 $return_url = self::settings_url( 208 210 array( 209 211 'aanya_connect' => '1', 210 '_wpnonce' => wp_create_nonce( 'aanya_connect' ),211 212 ) 212 213 ); … … 236 237 } 237 238 238 $nonce = $this->query_arg( '_wpnonce' ); 239 if ( ! $nonce || ! wp_verify_nonce( $nonce, 'aanya_connect' ) ) { 240 set_transient( 241 'aanya_admin_notice', 242 array( 243 'type' => 'error', 244 'message' => __( 'Authorize failed: invalid security token. Click Authorize again.', 'aanya-ai-chatbot' ), 245 ), 246 60 247 ); 248 $this->redirect_settings_clean(); 249 } 250 239 // OAuth CSRF: one-time state issued when Authorize was clicked (user-bound transient). 251 240 $state = $this->query_arg( 'state' ); 252 241 $stored = get_transient( 'aanya_connect_state_' . get_current_user_id() ); -
aanya-ai-chatbot/tags/1.1.12/readme.txt
r3748273 r3748383 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.1.1 07 Stable tag: 1.1.12 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.1.12 = 75 * Auto-fix install folder: if the plugin lives in aanya-ai-chatbot-1.1.x, it renames to aanya-ai-chatbot when an admin opens wp-admin (so WordPress.org updates work without asking each client). 76 77 = 1.1.11 = 78 * Fix: Authorize no longer fails with “invalid security token” after returning from AANYA (OAuth uses one-time state, not a fragile WP nonce in return_url). 79 74 80 = 1.1.10 = 75 * Security : authorize return verifies a WordPress nonce (plus existing OAuth state) for Plugin Check compliance.81 * Security hardening notes for Plugin Check; AJAX/uninstall nonces unchanged. 76 82 77 83 = 1.1.9 = … … 130 136 == Upgrade Notice == 131 137 138 = 1.1.12 = 139 Automatically renames versioned plugin folders to aanya-ai-chatbot for WordPress.org updates. 140 141 = 1.1.11 = 142 Fixes Authorize “invalid security token” after connecting via AANYA. 143 132 144 = 1.1.10 = 133 Authorize callback now verifies a WordPress nonce for WordPress.org Plugin Check.145 Plugin Check security notes; keep using this only if 1.1.11 is unavailable. 134 146 135 147 = 1.1.9 = -
aanya-ai-chatbot/trunk/aanya-chatbot.php
r3748273 r3748383 4 4 * Plugin URI: https://www.aanya.ai 5 5 * Description: Adds the AANYA AI chat widget to your WordPress site. Manage chatbot settings natively in WP Admin. Optional WooCommerce catalog/order sync. 6 * Version: 1.1.1 06 * Version: 1.1.12 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 7.4 … … 31 31 32 32 if ( ! defined( 'AANYA_CHATBOT_VERSION' ) ) { 33 define( 'AANYA_CHATBOT_VERSION', '1.1.1 0' );33 define( 'AANYA_CHATBOT_VERSION', '1.1.12' ); 34 34 } 35 35 if ( ! defined( 'AANYA_CHATBOT_PLUGIN_FILE' ) ) { … … 88 88 require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-connection.php'; 89 89 require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-api-client.php'; 90 require_once AANYA_CHATBOT_PLUGIN_DIR . 'includes/class-install-path.php'; 90 91 require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-studio.php'; 91 92 require_once AANYA_CHATBOT_PLUGIN_DIR . 'admin/class-admin-settings.php'; … … 102 103 */ 103 104 function aanya_chatbot_init() { 105 Aanya_Install_Path::boot(); 104 106 new Aanya_Admin_Settings(); 105 107 new Aanya_Widget_Loader(); -
aanya-ai-chatbot/trunk/admin/class-admin-settings.php
r3748273 r3748383 199 199 * Authorize URL — full page on aanya.ai. 200 200 * 201 * CSRF for this OAuth-style flow is the one-time `state` transient (not a WP 202 * nonce in return_url). External redirects often drop or invalidate `_wpnonce`. 203 * 201 204 * @return string 202 205 */ … … 204 207 $state = $this->create_connect_state(); 205 208 206 // Include a WP nonce in return_url (preserved by AANYA when redirecting back).207 209 $return_url = self::settings_url( 208 210 array( 209 211 'aanya_connect' => '1', 210 '_wpnonce' => wp_create_nonce( 'aanya_connect' ),211 212 ) 212 213 ); … … 236 237 } 237 238 238 $nonce = $this->query_arg( '_wpnonce' ); 239 if ( ! $nonce || ! wp_verify_nonce( $nonce, 'aanya_connect' ) ) { 240 set_transient( 241 'aanya_admin_notice', 242 array( 243 'type' => 'error', 244 'message' => __( 'Authorize failed: invalid security token. Click Authorize again.', 'aanya-ai-chatbot' ), 245 ), 246 60 247 ); 248 $this->redirect_settings_clean(); 249 } 250 239 // OAuth CSRF: one-time state issued when Authorize was clicked (user-bound transient). 251 240 $state = $this->query_arg( 'state' ); 252 241 $stored = get_transient( 'aanya_connect_state_' . get_current_user_id() ); -
aanya-ai-chatbot/trunk/readme.txt
r3748273 r3748383 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.1.1 07 Stable tag: 1.1.12 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 72 72 == Changelog == 73 73 74 = 1.1.12 = 75 * Auto-fix install folder: if the plugin lives in aanya-ai-chatbot-1.1.x, it renames to aanya-ai-chatbot when an admin opens wp-admin (so WordPress.org updates work without asking each client). 76 77 = 1.1.11 = 78 * Fix: Authorize no longer fails with “invalid security token” after returning from AANYA (OAuth uses one-time state, not a fragile WP nonce in return_url). 79 74 80 = 1.1.10 = 75 * Security : authorize return verifies a WordPress nonce (plus existing OAuth state) for Plugin Check compliance.81 * Security hardening notes for Plugin Check; AJAX/uninstall nonces unchanged. 76 82 77 83 = 1.1.9 = … … 130 136 == Upgrade Notice == 131 137 138 = 1.1.12 = 139 Automatically renames versioned plugin folders to aanya-ai-chatbot for WordPress.org updates. 140 141 = 1.1.11 = 142 Fixes Authorize “invalid security token” after connecting via AANYA. 143 132 144 = 1.1.10 = 133 Authorize callback now verifies a WordPress nonce for WordPress.org Plugin Check.145 Plugin Check security notes; keep using this only if 1.1.11 is unavailable. 134 146 135 147 = 1.1.9 =
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)