Make WordPress Core

Changeset 15026


Ignore:
Timestamp:
05/28/2010 02:58:21 AM (14 years ago)
Author:
nacin
Message:

Better branching to account for mod_rewrite mimicry. see #12758.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r15025 r15026  
    176176    } else {
    177177        $subdomain_install = false;
    178         if ( got_mod_rewrite() ) // dangerous assumptions
     178        if ( $got_mod_rewrite = got_mod_rewrite() ) // dangerous assumptions
    179179            echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ' . __( 'Please make sure the Apache <code>mod_rewrite</code> module is installed as it will be used at the end of this installation.' ) . '</p>';
    180180        elseif ( $is_apache )
    181181            echo '<div class="error inline"><p><strong>' . __( 'Warning!' ) . '</strong> ' . __( 'It looks like the Apache <code>mod_rewrite</code> module is not installed.' ) . '</p>';
    182         if ( $is_apache )
     182        if ( $got_mod_rewrite || $is_apache ) // Protect against mod_rewrite mimicry (but ! Apache)
    183183            echo '<p>' . __( 'If <code>mod_rewrite</code> is disabled, ask your administrator to enable that module, or look at the <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html">Apache documentation</a> or <a href="http://www.google.com/search?q=apache+mod_rewrite">elsewhere</a> for help setting it up.' ) . '</p></div>';
    184184    }
Note: See TracChangeset for help on using the changeset viewer.