Plugin Directory

Changeset 3253223


Ignore:
Timestamp:
03/10/2025 10:00:33 AM (9 months ago)
Author:
themeum
Message:

Update to version 1.8.14 from GitHub

Location:
qubely
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • qubely/tags/1.8.14/core/QUBELY.php

    r3096933 r3253223  
    11721172    public function qubely_get_content($request)
    11731173    {
     1174
    11741175        $params = $request->get_params();
     1176        $post_id = sanitize_text_field( wp_unslash( $params['postId'] ?? 0 ) );
     1177
    11751178        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 {
    11771194                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',
    11811197                ];
    11821198            }
  • qubely/tags/1.8.14/qubely.php

    r3235188 r3253223  
    44 * Plugin URI:        https://www.themeum.com/
    55 * Description:       The one and only Gutenberg block plugin you will ever need.
    6  * Version:           1.8.13
     6 * Version:           1.8.14
    77 * Author:            Themeum
    88 * Author URI:        https://www.themeum.com/
     
    2525
    2626// Define Version
    27 define('QUBELY_VERSION', '1.8.13');
     27define('QUBELY_VERSION', '1.8.14');
    2828
    2929// Define License
  • qubely/tags/1.8.14/readme.txt

    r3235188 r3253223  
    55Requires at least: 5.3
    66Tested up to: 6.7
    7 Stable tag: 1.8.13
     7Stable tag: 1.8.14
    88Requires PHP: 7.0
    99License: GPL-2.0+
     
    231231== Changelog ==
    232232
     233= 1.8.14 =
     234Update: Security update to protect `qubely_get_content` from unauthorized access to sensitive post data.
     235
    233236= 1.8.13 =
    234237Update: Security Update(Prevent Cross-Site Scripting)
  • qubely/trunk/core/QUBELY.php

    r3096933 r3253223  
    11721172    public function qubely_get_content($request)
    11731173    {
     1174
    11741175        $params = $request->get_params();
     1176        $post_id = sanitize_text_field( wp_unslash( $params['postId'] ?? 0 ) );
     1177
    11751178        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 {
    11771194                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',
    11811197                ];
    11821198            }
  • qubely/trunk/qubely.php

    r3235188 r3253223  
    44 * Plugin URI:        https://www.themeum.com/
    55 * Description:       The one and only Gutenberg block plugin you will ever need.
    6  * Version:           1.8.13
     6 * Version:           1.8.14
    77 * Author:            Themeum
    88 * Author URI:        https://www.themeum.com/
     
    2525
    2626// Define Version
    27 define('QUBELY_VERSION', '1.8.13');
     27define('QUBELY_VERSION', '1.8.14');
    2828
    2929// Define License
  • qubely/trunk/readme.txt

    r3235188 r3253223  
    55Requires at least: 5.3
    66Tested up to: 6.7
    7 Stable tag: 1.8.13
     7Stable tag: 1.8.14
    88Requires PHP: 7.0
    99License: GPL-2.0+
     
    231231== Changelog ==
    232232
     233= 1.8.14 =
     234Update: Security update to protect `qubely_get_content` from unauthorized access to sensitive post data.
     235
    233236= 1.8.13 =
    234237Update: Security Update(Prevent Cross-Site Scripting)
Note: See TracChangeset for help on using the changeset viewer.