Skip to:
Content

bbPress.org

Changeset 6837


Ignore:
Timestamp:
07/27/2018 06:02:12 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Forms: include forum/topic ID in nonce checks.

This change adds in missing object IDs, fixing a bug causing form content to be lost when an error had occurred.

Props wpdennis. Fixes #3209.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/template.php

    r6830 r6837  
    25302530        }
    25312531
    2532         // Creating a new topic
     2532        // Creating a new forum
    25332533        if ( bbp_verify_nonce_request( 'bbp-new-forum' ) ) {
    25342534                return true;
    25352535        }
    25362536
    2537         // Editing an existing topic
    2538         if ( bbp_verify_nonce_request( 'bbp-edit-forum' ) ) {
     2537        // Editing an existing forum
     2538        if ( bbp_verify_nonce_request( 'bbp-edit-forum_' . bbp_get_forum_id() ) ) {
    25392539                return true;
    25402540        }
  • trunk/src/includes/topics/template.php

    r6830 r6837  
    39583958
    39593959        // Editing an existing topic
    3960         if ( bbp_verify_nonce_request( 'bbp-edit-topic' ) ) {
     3960        if ( bbp_verify_nonce_request( 'bbp-edit-topic_' . bbp_get_topic_id() ) ) {
    39613961                return true;
    39623962        }
Note: See TracChangeset for help on using the changeset viewer.