Browse files

HtmlEncode the path

	Fixes Novell bug #769799.
  • Loading branch information...
1 parent ac37b3a commit d16d4623edb210635bec3ca3786481b82cde25a2 @gonzalop gonzalop committed Jul 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mcs/class/System.Web/System.Web/HttpForbiddenHandler.cs
View
2 mcs/class/System.Web/System.Web/HttpForbiddenHandler.cs
@@ -42,7 +42,7 @@ public void ProcessRequest (HttpContext context)
throw new HttpException (403,
"This type of page is not served.",
- req != null ? req.Path : null,
+ req != null ? HttpUtility.HtmlEncode (req.Path) : null,
description);
}

0 comments on commit d16d462

Please sign in to comment.