Changeset 3044671
- Timestamp:
- 03/04/2024 01:37:44 AM (22 months ago)
- Location:
- adsensei-b30/trunk
- Files:
-
- 3 edited
-
adSenseiB30.php (modified) (1 diff)
-
includes/admin/admin-actions.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
adsensei-b30/trunk/adSenseiB30.php
r2963273 r3044671 5 5 Plugin URI: https://adsplugin.net 6 6 Description: Inserta de manera fácil, rápida y flexible anuncios de AdSense por todo tu blog 7 Version: 3.1. 27 Version: 3.1.3 8 8 Author: <a href="https://adsplugin.net" target="_blank">José Fernandez</a> 9 9 License: GPLv2 or later -
adsensei-b30/trunk/includes/admin/admin-actions.php
r2921235 r3044671 78 78 function adsensei_save_vi_token() { 79 79 global $adsensei_options; 80 81 if (empty($_POST['token']) ) {82 echo json_encode(array("status" => "failed" ));80 81 if (empty($_POST['token']) || !is_string($_POST['token'])) { 82 echo json_encode(array("status" => "failed", "error" => "Invalid token format")); 83 83 wp_die(); 84 }85 84 } 85 $token = esc_html($_POST['token']); 86 86 // Save token before trying to create ads.txt 87 update_option('adsensei_vi_token', $ _POST['token']);87 update_option('adsensei_vi_token', $token ); 88 88 89 89 if (!isset($adsensei_options['adsTxtEnabled'])) { … … 91 91 delete_transient('adsensei_vi_ads_txt_error'); 92 92 delete_transient('adsensei_vi_ads_txt_notice'); 93 echo json_encode(array("status" => "success", "token" => $ _POST['token'], "adsTxt" => 'disabled'));93 echo json_encode(array("status" => "success", "token" => $token, "adsTxt" => 'disabled')); 94 94 wp_die(); 95 95 } … … 111 111 112 112 //sleep(5); 113 echo json_encode(array("status" => "success", "token" => $ _POST['token']));113 echo json_encode(array("status" => "success", "token" => $token)); 114 114 wp_die(); 115 115 } -
adsensei-b30/trunk/readme.txt
r2927215 r3044671 3 3 Requires at least: 3.6+ 4 4 Tested up to: 6.2.2 5 Stable tag: 3.1. 05 Stable tag: 3.1.3 6 6 License: GPLv3 7 7 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 55 55 56 56 == Changelog == 57 = 3.1.3 = 58 * Resolvemos vulnerabilidad XSS. 57 59 = 3.1.0 = 58 60 * Agregamos opción para migrar los adsense a la nueva versión
Note: See TracChangeset
for help on using the changeset viewer.