Plugin Directory

Changeset 3046911


Ignore:
Timestamp:
03/07/2024 11:03:50 AM (2 years ago)
Author:
pressmate
Message:

Fixed CSRF issue with a page

Location:
makestories-helper/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • makestories-helper/trunk/makestories.php

    r3041353 r3046911  
    44Plugin URI:     https://makestories.io/official-wordpress-webstories-plugin/
    55Description:    The leading Google Web Stories Editor is now available to create Stories in WordPress. It is easy to use, allows for extensive customization, and is adaptive for future changes.
    6 Version:        3.0.2
     6Version:        3.0.3
    77Author:         MakeStories Team
    88Author URI:     https://makestories.io
  • makestories-helper/trunk/pages/category-structure.php

    r2766903 r3046911  
    33
    44    if(isset($_POST['post_slug'])){
    5         ms_set_options();
     5        if(check_ajax_referer(MS_NONCE_REFERRER, false, false)){
     6            ms_set_options();
     7        }else{ //Token not verified so will not save the details to DB ?>
     8            <div class="notice notice-error is-dismissible" style="margin-top: 20px;margin-left: 0;">
     9                <p>Page has expired! Please try refreshing the page</p>
     10            </div>
     11        <?php }
    612    }
    713   
     
    2733        <h2>MakeStories Settings</h2>
    2834        <form method="POST" action="" class="category-allow-form">
    29 
     35            <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( MS_NONCE_REFERRER ) ?>">
    3036        <table class="form-table" role="presentation">
    3137
Note: See TracChangeset for help on using the changeset viewer.