Skip to content

Commit

Permalink
Backport of r135205
Browse files Browse the repository at this point in the history
svn path=/branches/mono-2-4/mcs/; revision=135206
  • Loading branch information
grendello committed Jun 2, 2009
1 parent 12907a6 commit 8cce221
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions mcs/class/System.Web/System.Web/ChangeLog
@@ -1,3 +1,8 @@
2009-06-02 Marek Habersack <mhabersack@novell.com>

* HttpException.cs: 403 errors get same treatment as 404
below. Fixes bug #509092

2009-06-01 Marek Habersack <mhabersack@novell.com>

* HttpException.cs: if custom errors are enabled and the error
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/System.Web/System.Web/HttpException.cs
Expand Up @@ -134,7 +134,7 @@ public string GetHtmlErrorMessage ()
try {
HttpContext ctx = HttpContext.Current;
if (ctx != null && ctx.IsCustomErrorEnabled) {
if (http_code != 404)
if (http_code != 404 && http_code != 403)
return GetCustomErrorDefaultMessage ();
else
return GetDefaultErrorMessage (false);
Expand Down

0 comments on commit 8cce221

Please sign in to comment.