Changeset 3253223
- Timestamp:
- 03/10/2025 10:00:33 AM (9 months ago)
- Location:
- qubely
- Files:
-
- 6 edited
- 1 copied
-
tags/1.8.14 (copied) (copied from qubely/trunk)
-
tags/1.8.14/core/QUBELY.php (modified) (1 diff)
-
tags/1.8.14/qubely.php (modified) (2 diffs)
-
tags/1.8.14/readme.txt (modified) (2 diffs)
-
trunk/core/QUBELY.php (modified) (1 diff)
-
trunk/qubely.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
qubely/tags/1.8.14/core/QUBELY.php
r3096933 r3253223 1172 1172 public function qubely_get_content($request) 1173 1173 { 1174 1174 1175 $params = $request->get_params(); 1176 $post_id = sanitize_text_field( wp_unslash( $params['postId'] ?? 0 ) ); 1177 1175 1178 try { 1176 if (isset($params['postId'])) { 1179 if ( $post_id ) { 1180 if ( current_user_can( 'edit_post', $post_id ) ) { 1181 return [ 1182 'success' => true, 1183 'data' => get_post( $post_id )->post_content, 1184 'message' => 'Get Data Success!!', 1185 ]; 1186 } else { 1187 return [ 1188 'success' => false, 1189 'message' => 'You are not allowed to edit this post', 1190 ]; 1191 } 1192 1193 } else { 1177 1194 return [ 1178 'success' => true, 1179 'data' => !empty($params['postId']) ? get_post($params['postId'])->post_content : '', 1180 'message' => 'Get Data Success!!', 1195 'success' => false, 1196 'message' => 'Post ID is required', 1181 1197 ]; 1182 1198 } -
qubely/tags/1.8.14/qubely.php
r3235188 r3253223 4 4 * Plugin URI: https://www.themeum.com/ 5 5 * Description: The one and only Gutenberg block plugin you will ever need. 6 * Version: 1.8.1 36 * Version: 1.8.14 7 7 * Author: Themeum 8 8 * Author URI: https://www.themeum.com/ … … 25 25 26 26 // Define Version 27 define('QUBELY_VERSION', '1.8.1 3');27 define('QUBELY_VERSION', '1.8.14'); 28 28 29 29 // Define License -
qubely/tags/1.8.14/readme.txt
r3235188 r3253223 5 5 Requires at least: 5.3 6 6 Tested up to: 6.7 7 Stable tag: 1.8.1 37 Stable tag: 1.8.14 8 8 Requires PHP: 7.0 9 9 License: GPL-2.0+ … … 231 231 == Changelog == 232 232 233 = 1.8.14 = 234 Update: Security update to protect `qubely_get_content` from unauthorized access to sensitive post data. 235 233 236 = 1.8.13 = 234 237 Update: Security Update(Prevent Cross-Site Scripting) -
qubely/trunk/core/QUBELY.php
r3096933 r3253223 1172 1172 public function qubely_get_content($request) 1173 1173 { 1174 1174 1175 $params = $request->get_params(); 1176 $post_id = sanitize_text_field( wp_unslash( $params['postId'] ?? 0 ) ); 1177 1175 1178 try { 1176 if (isset($params['postId'])) { 1179 if ( $post_id ) { 1180 if ( current_user_can( 'edit_post', $post_id ) ) { 1181 return [ 1182 'success' => true, 1183 'data' => get_post( $post_id )->post_content, 1184 'message' => 'Get Data Success!!', 1185 ]; 1186 } else { 1187 return [ 1188 'success' => false, 1189 'message' => 'You are not allowed to edit this post', 1190 ]; 1191 } 1192 1193 } else { 1177 1194 return [ 1178 'success' => true, 1179 'data' => !empty($params['postId']) ? get_post($params['postId'])->post_content : '', 1180 'message' => 'Get Data Success!!', 1195 'success' => false, 1196 'message' => 'Post ID is required', 1181 1197 ]; 1182 1198 } -
qubely/trunk/qubely.php
r3235188 r3253223 4 4 * Plugin URI: https://www.themeum.com/ 5 5 * Description: The one and only Gutenberg block plugin you will ever need. 6 * Version: 1.8.1 36 * Version: 1.8.14 7 7 * Author: Themeum 8 8 * Author URI: https://www.themeum.com/ … … 25 25 26 26 // Define Version 27 define('QUBELY_VERSION', '1.8.1 3');27 define('QUBELY_VERSION', '1.8.14'); 28 28 29 29 // Define License -
qubely/trunk/readme.txt
r3235188 r3253223 5 5 Requires at least: 5.3 6 6 Tested up to: 6.7 7 Stable tag: 1.8.1 37 Stable tag: 1.8.14 8 8 Requires PHP: 7.0 9 9 License: GPL-2.0+ … … 231 231 == Changelog == 232 232 233 = 1.8.14 = 234 Update: Security update to protect `qubely_get_content` from unauthorized access to sensitive post data. 235 233 236 = 1.8.13 = 234 237 Update: Security Update(Prevent Cross-Site Scripting)
Note: See TracChangeset
for help on using the changeset viewer.