search
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
#region Copyright © 1997-2007 EPiServer AB. All Rights Reserved.
/*
This code may only be used according to the EPiServer License Agreement.
The use of this code outside the EPiServer environment, in whole or in
parts, is forbidden without prior written permission from EPiServer AB.
EPiServer is a registered trademark of EPiServer AB. For more information
see http://www.episerver.com/license or request a copy of the EPiServer
License Agreement by sending an email to info@episerver.com
*/
#endregion
using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using EPiServer.Core;
using EPiServer.PlugIn;
using EPiServer.Web;
namespace EPiServerSample.templates.Units
{
///
[PagePlugIn()]
public class ViewStateMover
{
///
///
public static void Initialize(int optionFlag)
{
HtmlRewritePipe.HtmlInit += HtmlInitEventHandler;
}
///
/// The sender.
/// The
UrlRewriteModule.RewriteValidateHtmlRewrite
UrlRewriteModule.RewriteValidateToExternal
UrlRewriteModule.RewriteValidateToInternal
and setting e.IsValidForRewrite to false, but that doesn't seem to work. If I remove the UrlRewriteModule httpModule everything works just fine, but as i said i only want to turn it off for certain URL's.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EPiServer.Core;
using EPiServer.PlugIn;
using EPiServer.Web;
namespace EPiServer1
{
[PagePlugIn()]
public class UrlRewriteControl
{
public static void Initialize(int optionFlag)
{
UrlRewriteModule.RewriteInit += new EventHandler
If i remove the UrlRewriteModule from web.config i get.
Note that the & is replaced by &
Is there anyway we could work around this?