bug considering WP_PROXY_BYPASS_HOSTS in proxy setups
-
Hi André,
the current version has a bug regarding the handling of proxy requests. When an intranet wordpress is configured to use a http proxy for external requests (e.g. for updates and plugin installs) and also includes exceptions for acessing internal systems (e.g. an internal piwik instance via WP_PROXY_BYPASS_HOSTS) the internal checks before doing the curl request are always returning true. Therefore intranet requests fail as they are always fetched via proxy.
Please have a look at line 40 in wp-content\plugins\wp-piwik\classes\WP_Piwik\Request\Rest.php, seems like a wrong param is passed to check if the desired url has to be proxied:
if ($httpProxyClass->is_enabled() && $httpProxyClass->send_through_proxy($strURL)) {
should be
if ($httpProxyClass->is_enabled() && $httpProxyClass->send_through_proxy($url)) {
Kind regards
Eckard
- The topic ‘bug considering WP_PROXY_BYPASS_HOSTS in proxy setups’ is closed to new replies.