Skip to content

Commit

Permalink
fixed http URLs in sitemap XML files
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisxrow committed Sep 1, 2017
1 parent 05d461b commit 889f41e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/xrowsitemaptools.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ public static function addNode( xrowSitemap $sitemap, eZContentObjectTreeNode $n
}
eZURI::transformURI( $url, true, $transformURIMode );

if($transformURIMode == 'full')
{
$url = preg_replace("(^https?)", "https", $url );
}

// only the URI mode is fully compatible with this $url generation
if( $site_ini->variable( 'SiteAccessSettings', 'MatchOrder' ) == 'uri' )
{
Expand Down

0 comments on commit 889f41e

Please sign in to comment.