From 933e0524a3738baa7877c378e016ea1532da864f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 17 Apr 2014 23:26:01 +0200 Subject: [PATCH] Fix for missing proxy_host if script is not installed yet and requires a HTTP request. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/http-functions.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/inc/http-functions.php b/inc/http-functions.php index ed9250603b..9bdf939021 100644 --- a/inc/http-functions.php +++ b/inc/http-functions.php @@ -10,11 +10,6 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : HTTP-relevante Funktionen * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * @@ -343,8 +338,14 @@ function sendRawRequest ($host, $request, $allowOnlyHttpOkay = TRUE) { // Get resolver instance $resolver = new HostnameResolver(); - // Get proxy host - $proxyHost = compileRawCode(getProxyHost()); + // Default is no proxy + $proxyHost = NULL; + + // Is the configuration entry set? + if ((!isInstaller()) && (isConfigEntrySet('proxy_host'))) { + // Get proxy host + $proxyHost = compileRawCode(getProxyHost()); + } // END - if // Open connection if (isProxyUsed() === TRUE) { -- 2.39.5