Skip to:
Content

bbPress.org

Changeset 6299


Ignore:
Timestamp:
02/21/2017 11:11:00 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Common: prefer intval() over absint() for reply IDs in form fields.

File:
1 edited

Legend:

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

    r6196 r6299  
    17431743
    17441744    <input type="hidden" name="action"       id="bbp_post_action" value="bbp-split-topic" />
    1745     <input type="hidden" name="bbp_reply_id" id="bbp_reply_id"    value="<?php echo absint( $_GET['reply_id'] ); ?>" />
     1745    <input type="hidden" name="bbp_reply_id" id="bbp_reply_id"    value="<?php echo intval( $_GET['reply_id'] ); ?>" />
    17461746
    17471747    <?php wp_nonce_field( 'bbp-split-topic_' . bbp_get_topic_id() );
     
    17591759
    17601760    <input type="hidden" name="action"       id="bbp_post_action" value="bbp-move-reply" />
    1761     <input type="hidden" name="bbp_reply_id" id="bbp_reply_id"    value="<?php echo absint( $_GET['reply_id'] ); ?>" />
     1761    <input type="hidden" name="bbp_reply_id" id="bbp_reply_id"    value="<?php echo intval( $_GET['reply_id'] ); ?>" />
    17621762
    17631763    <?php wp_nonce_field( 'bbp-move-reply_' . bbp_get_reply_id() );
Note: See TracChangeset for help on using the changeset viewer.