HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/RMourik/bassol.nl/wwwroot/CMSPages/BlogRss.aspx.cs
using System;

using CMS.Helpers;
using CMS.DocumentEngine;
using CMS.SiteProvider;
using CMS.UIControls;

public partial class CMSPages_BlogRss : XMLPage
{
    protected override void OnPreInit(EventArgs e)
    {
        base.OnPreInit(e);

        Response.ContentType = "text/xml";

        // Get parent blog alias path from url
        string blogAliasPath = QueryHelper.GetString("aliaspath", String.Empty);
        string validPath = TreePathUtils.GetSafeNodeAliasPath(blogAliasPath, SiteContext.CurrentSiteName).TrimEnd('/') + "/%";

        // Set blog path to the repetet to get appropiate posts
        repeater.Path = validPath;
    }
}