From 7f4d65c1bbf8f60bb0872ece503fa514d152ba3a Mon Sep 17 00:00:00 2001 From: Oliver P Date: Fri, 26 Feb 2016 14:01:46 +0100 Subject: [PATCH] fix for forwarding bug on use with wordpress toxid theme without this change, i get a reload bug causing the toxid wordpress inclustion to oxid shop not to work and having an url loop like this: www.myurl/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/?wptheme=toxid please also see: https://forum.oxid-esales.com/showthread.php?p=177427 --- core/toxidcurl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/toxidcurl.php b/core/toxidcurl.php index 53ecd24..caefb68 100644 --- a/core/toxidcurl.php +++ b/core/toxidcurl.php @@ -371,7 +371,7 @@ protected function _getRemoteContent($sUrl) $params = http_build_query($this->additionalUrlParams); if (false === strpos($sUrl, '?')) { $sUrl .= "?{$params}"; - } else { + } elseif ($params!=='') { $sUrl = rtrim($sUrl, '&') . "&{$params}"; }