Make WordPress Core

Changeset 2823


Ignore:
Timestamp:
08/30/2005 04:17:52 AM (21 years ago)
Author:
ryan
Message:

Allow query strings at the end of cruftless URIs. Props Owen and Mark. fixes #1581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r2741 r2823  
    13311331                                 (false === strpos($_SERVER['PATH_INFO'], '.php'))
    13321332                                 ) ||
    1333                                 (empty($_SERVER['QUERY_STRING']) &&
    1334                                  (false === strpos($_SERVER['REQUEST_URI'], '.php')) &&
     1333                                ((false === strpos($_SERVER['REQUEST_URI'], '.php')) &&
    13351334                                 ('/' != $_SERVER['REQUEST_URI']))
    13361335                                ) {
     
    13461345                        if (! empty($rewrite)) {
    13471346                                $pathinfo = $_SERVER['PATH_INFO'];
    1348                                 $req_uri = $_SERVER['REQUEST_URI'];     
     1347                                $pathinfo_array = explode('?', $pathinfo);
     1348                                $pathinfo = $pathinfo_array[0];
     1349                                $req_uri = $_SERVER['REQUEST_URI'];
     1350                                $req_uri_array = explode('?', $req_uri);
     1351                                $req_uri = $req_uri_array[0];
    13491352                                $home_path = parse_url(get_settings('home'));
    13501353                                $home_path = $home_path['path'];
Note: See TracChangeset for help on using the changeset viewer.