Make WordPress Core


Ignore:
Timestamp:
03/14/2004 04:43:55 PM (21 years ago)
Author:
rboren
Message:

Make sure $req_uri is not empty before passing to strpos().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r975 r976  
    3434            // If the request URI is the anchor of the match, prepend it
    3535            // to the path info.
    36             if (strpos($match, $req_uri) === 0) {
     36            if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0)) {
    3737                $pathinfomatch = $req_uri . '/' . $pathinfo;
    3838            }
Note: See TracChangeset for help on using the changeset viewer.