Plugin Directory

Changeset 3181569


Ignore:
Timestamp:
11/04/2024 03:10:00 PM (17 months ago)
Author:
streamweasels
Message:

fix for missing nonce check

Location:
streamweasels-twitch-integration/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • streamweasels-twitch-integration/trunk/README.txt

    r3173108 r3181569  
    44Requires at least: 5.0
    55Tested up to: 6.6
    6 Stable tag: 1.9.0
     6Stable tag: 1.9.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    125125
    126126== Changelog ==
     127
     128= 1.9.1 =
     129* Fixed an error with nonce generation
    127130
    128131= 1.9.0 =
  • streamweasels-twitch-integration/trunk/includes/class-streamweasels-twitch.php

    r3173108 r3181569  
    323323
    324324        public function swti_fetch_video(WP_REST_Request $request) {
     325
     326            $nonce = $request->get_header('X-WP-Nonce');
    325327
    326328            if (!$this->nonceCheck) {
     
    373375        function swti_fetch_users(WP_REST_Request $request) {
    374376
     377            $nonce = $request->get_header('X-WP-Nonce');
     378
    375379            if (!$this->nonceCheck) {
    376380                if (!wp_verify_nonce($nonce, 'wp_rest')) {
     
    415419
    416420        function swti_fetch_games(WP_REST_Request $request) {
     421
     422            $nonce = $request->get_header('X-WP-Nonce');
    417423
    418424            if (!$this->nonceCheck) {
  • streamweasels-twitch-integration/trunk/streamweasels.php

    r3173108 r3181569  
    1717 * Plugin URI:        https://www.streamweasels.com/
    1818 * Description:       Embed Twitch streams with our collection of Twitch Blocks and Shortcodes.
    19  * Version:           1.9.0
     19 * Version:           1.9.1
    2020 * Author:            StreamWeasels
    2121 * Author URI:        https://www.streamweasels.com
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'STREAMWEASELS_VERSION', '1.9.0' );
     36define( 'STREAMWEASELS_VERSION', '1.9.1' );
    3737if ( function_exists( 'sti_fs' ) ) {
    3838    sti_fs()->set_basename( false, __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.