Changeset 3121690
- Timestamp:
- 07/18/2024 06:53:08 PM (19 months ago)
- Location:
- json-api-user/trunk
- Files:
-
- 3 edited
-
controllers/User.php (modified) (6 diffs)
-
json-api-user.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
json-api-user/trunk/controllers/User.php
r3116707 r3121690 52 52 { 53 53 54 global $json_api ;54 global $json_api, $wpdb; 55 55 56 56 … … 182 182 183 183 if ($user_id) { 184 $disallowed = array( 'wp_user_level', 'wp_capabilities');184 $disallowed = array("wp_user_level", "wp_capabilities", "{$wpdb->prefix}user_level", "{$wpdb->prefix}capabilities"); 185 185 186 186 if (is_array($_REQUEST['custom_fields'])) { … … 605 605 { 606 606 607 global $json_api ;607 global $json_api, $wpdb; 608 608 609 609 if (!$json_api->query->cookie) { … … 627 627 $meta_value = $json_api->query->meta_value; 628 628 629 $disallowed = array('wp_user_level', 'wp_capabilities');630 629 $disallowed = array("wp_user_level", "wp_capabilities", "{$wpdb->prefix}user_level", "{$wpdb->prefix}capabilities"); 630 631 631 if(in_array($meta_key, $disallowed) ){ 632 632 $json_api->error("This meta_key '".$meta_key."' is not allowed."); … … 686 686 { 687 687 688 global $json_api ;688 global $json_api, $wpdb; 689 689 690 690 if (!$json_api->query->cookie) { … … 702 702 $json_api->error("You must include one or more vars in your request to add or update as user_meta. e.g. 'name', 'website', 'skills'. You must provide multiple meta_key vars in this format: &name=Ali&website=google.com&description=This is test description. If any field has the possibility to hold more than one value for any multi-select fields or check boxes, you must provide an array of values and use POST method."); 703 703 704 $disallowed = array('wp_user_level', 'wp_capabilities');705 704 $disallowed = array("wp_user_level", "wp_capabilities", "{$wpdb->prefix}user_level", "{$wpdb->prefix}capabilities"); 705 706 706 707 707 $result = array(); -
json-api-user/trunk/json-api-user.php
r3116707 r3121690 9 9 Description: Extends the JSON API for RESTful user registration, authentication, password reset, Facebook Login, user meta and BuddyPress Profile related functions. A Pro version is also available. 10 10 11 Version: 3.9. 611 Version: 3.9.7 12 12 13 13 Author: Ali Qureshi … … 19 19 */ 20 20 21 define('JAU_VERSION', '3.9. 6');21 define('JAU_VERSION', '3.9.7'); 22 22 23 23 include_once(ABSPATH . 'wp-admin/includes/plugin.php'); -
json-api-user/trunk/readme.txt
r3116707 r3121690 4 4 Tags: json api, RESTful user registration, authentication, RESTful Facebook Login, RESTful User Meta and BuddyPress xProfile 5 5 Contributors: parorrey 6 Stable tag: 3.9. 66 Stable tag: 3.9.7 7 7 Requires at least: 3.0.1 8 8 Tested up to: 6.6.0 … … 233 233 == Changelog == 234 234 235 = 3.9.7 = 236 * fixed security vulnerabilities 237 235 238 = 3.9.6 = 236 239 * fixed security vulnerabilities & for new version of WordPress 6.6
Note: See TracChangeset
for help on using the changeset viewer.