[buddypress-trac] [BuddyPress Trac] #6537: Registrating a new user fails because of bad url composition with port number.

buddypress-trac noreply at wordpress.org
Fri Jun 26 16:50:40 UTC 2015


#6537: Registrating a new user fails because of bad url composition with port
number.
------------------------------+-----------------------------
 Reporter:  tokkonopapa       |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Component - Core  |    Version:  2.3.2
 Severity:  normal            |   Keywords:  needs-patch
------------------------------+-----------------------------
 A reqeust of registering a new user from `http://example.com:port/regiser`
 always fails because of bad url composition in
 `bp_verify_nonce_request()`.

 HTTP request with port number appears in `$_SERVER['HTTP_HOST']` like
 `example:port`. But in `bp_verify_nonce_request()`, requested URL is
 composed `$request_host = $_SERVER['HTTP_HOST'] . ':' .
 $_SERVER['SERVER_PORT'];`. For example, `$request_host =
 $parsed_home['host'] . ':' . $_SERVER['SERVER_PORT'];` is better.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6537>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list