[wp-cvs] wordpress wp-login.php,1.44,1.45
Matthew Mullenweg
saxmatt at users.sourceforge.net
Sat Dec 4 00:18:03 UTC 2004
Update of /cvsroot/cafelog/wordpress
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6712
Modified Files:
wp-login.php
Log Message:
Don't take parts of the URI after the script name when updating the siteurl.
Index: wp-login.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-login.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** wp-login.php 27 Nov 2004 22:54:23 -0000 1.44
--- wp-login.php 4 Dec 2004 00:18:01 -0000 1.45
***************
*** 46,51 ****
// If someone has moved WordPress let's try to detect it
! if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) != get_settings('siteurl') )
! update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']) );
switch($action) {
--- 46,51 ----
// If someone has moved WordPress let's try to detect it
! if ( dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']) != get_settings('siteurl') )
! update_option('siteurl', dirname('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']) );
switch($action) {
More information about the cvs
mailing list