WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
Bug on row 201 in file redirection.php prevents exports. (2 posts)

  1. Daan Kortenbach
    Member
    Posted 1 year ago #

    Row 201:

    if ( isset($_GET['token'] ) && isset( $_GET['page'] ) && isset( $_GET['sub'] ) && $_GET['token'] == $options['token'] && $_GET['page'] == 'tools.php?page=redirection.php' && in_array( $_GET['sub'], array( 'rss', 'xml', 'csv', 'apache' ) ) ) {

    Should be:

    if ( isset($_GET['token'] ) && isset( $_GET['page'] ) && isset( $_GET['sub'] ) && $_GET['token'] == $options['token'] && $_GET['page'] == 'redirection.php' && in_array( $_GET['sub'], array( 'rss', 'xml', 'csv', 'apache' ) ) ) {

    The issue is that $_GET['page'] will never be equal to tools.php?page=redirection.php. Thus, no export will ever happen.

    http://wordpress.org/extend/plugins/redirection/

  2. tunjic
    Member
    Posted 1 year ago #

    Nice catch. I was just trying to export, and this fixed the issue. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.