#6537 closed defect (bug)
Registrating a new user fails because of bad url composition with port number.
Reported by: | tokkonopapa | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.3.2 |
Component: | Core | Keywords: | needs-patch |
Cc: |
Description
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for the report.
Please see #6528, which has a fix. Marking this as a duplicate.