Index: branches/5.2.x/core/kernel/utility/http_query.php =================================================================== diff -u -N -r16560 -r16589 --- branches/5.2.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 16560) +++ branches/5.2.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 16589) @@ -1,6 +1,6 @@ Order = $order; - if ( isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { - // when AJAX request is made from jQuery, then create ajax variable, - // so any logic based in it (like redirects) will not break down + if ( isset($_SERVER['HTTP_PROXY']) && PHP_SAPI !== 'cli' ) { + throw new RuntimeException('Web Requests with "Proxy" header are forbidden.'); + } + + if ( isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) { + // When AJAX request is made from jQuery, then create ajax variable, + // so any logic based in it (like redirects) will not break down. $_GET['ajax'] = 'yes'; }