Make WordPress Core

Changeset 1911


Ignore:
Timestamp:
12/04/2004 12:18:01 AM (20 years ago)
Author:
saxmatt
Message:

Don't take parts of the URI after the script name when updating the siteurl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r1893 r1911  
    4646
    4747// If someone has moved WordPress let's try to detect it
    48 if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) != get_settings('siteurl') )
    49     update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) );
     48if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']) != get_settings('siteurl') )
     49    update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']) );
    5050
    5151switch($action) {
Note: See TracChangeset for help on using the changeset viewer.