WordPress.org

Forums

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

  1. Daan Kortenbach
    Member
    Posted 2 years 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 2 years 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

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.