[wp-trac] [WordPress Trac] #50157: HTTP_HOST instead of configuration value

WordPress Trac noreply at wordpress.org
Wed May 13 16:10:54 UTC 2020


#50157: HTTP_HOST instead of configuration value
------------------------------+-----------------------------
 Reporter:  jschodermedikura  |       Owner:  (none)
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  General           |     Version:
 Severity:  normal            |  Resolution:  duplicate
 Keywords:                    |     Focuses:  administration
------------------------------+-----------------------------
Description changed by SergeyBiryukov:

Old description:

> We are using an usual setup and run into an issue with the page
> pagination inside the admin-pages.
>
> Only parts of our website is created in WordPress, some parts are created
> in NodeJS. So we are using a proxy to delegate all our requests from our
> live url (https://live.medikura.com) to our hosted wordpress
> (https://hosted.medikura.com)
>
> We changed both configuration values (wordpress url + website url) to our
> live page (https://live.medikura.com). In almost all cases this works
> perfectly fine. But we have a problem when it comes to pagination which
> uses /wp-admin/includes/class-wp-list-table which doesn't use any
> configuration value but the PHP variable $_SERVER['HTTP_HOST'] which of
> course is our hosted url (https://hosted.medikura.com) This means as soon
> as a user tries to click next on the pagination she is redirected to our
> hosting url which in turn redirects to our live url and forces a new
> login.
>
> Can you please make sure that the code always uses either of the
> configuration values instead of the non configurable
> $_SERVER['HTTP_HOST'].
>
> Thx :-)

New description:

 We are using an usual setup and run into an issue with the page pagination
 inside the admin-pages.

 Only parts of our website is created in WordPress, some parts are created
 in NodeJS. So we are using a proxy to delegate all our requests from our
 live url (https://live.medikura.com) to our hosted wordpress
 (https://hosted.medikura.com)

 We changed both configuration values (wordpress url + website url) to our
 live page (https://live.medikura.com). In almost all cases this works
 perfectly fine. But we have a problem when it comes to pagination which
 uses /wp-admin/includes/class-wp-list-table which doesn't use any
 configuration value but the PHP variable `$_SERVER['HTTP_HOST']` which of
 course is our hosted url (https://hosted.medikura.com) This means as soon
 as a user tries to click next on the pagination she is redirected to our
 hosting url which in turn redirects to our live url and forces a new
 login.

 Can you please make sure that the code always uses either of the
 configuration values instead of the non configurable
 `$_SERVER['HTTP_HOST']`.

 Thx :-)

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50157#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list