diff --git a/plugins/rssplugin/KTrss.inc.php b/plugins/rssplugin/KTrss.inc.php index 3c27932..7997317 100644 --- a/plugins/rssplugin/KTrss.inc.php +++ b/plugins/rssplugin/KTrss.inc.php @@ -279,7 +279,15 @@ class KTrss{ // Build path to host $aPath = explode('/', trim($_SERVER['PHP_SELF'])); global $default; - $hostPath = "http" . ($default->sslEnabled ? "s" : "") . "://".$_SERVER['HTTP_HOST']."/".$aPath[1]."/"; + if(count($aPath) > 2){ + for($i = 0; $i < count($aPath)-1; $i++){ + $sSuffix .= $aPath[$i]; + } + $sSuffix = $aPath[1]."/"; + }else{ + $sSuffix = ''; + } + $hostPath = "http" . ($default->sslEnabled ? "s" : "") . "://".$_SERVER['HTTP_HOST']."/".$sSuffix; $feed = "\n"; $feed .= "\n". "\n" . @@ -546,7 +554,7 @@ class KTrss{ // get rss icon link function getImageLink($iItemId, $sItemType){ - return "".KTrss::getRssLinkIcon().""; + return "".KTrss::getRssLinkIcon().""; } // get the mime type id for a document