2009-06-04 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web / HttpException.cs
index 45221e3f1a6fa0244d11d597ab588c8215b0d545..6385ffe7cb325273c38e77e17cc1d297dcaada43 100644 (file)
@@ -322,7 +322,7 @@ table.sampleCode {{width: 100%; background-color: #ffffcc; }}
                        if (resource_name != null && resource_name.Length > 0)
                                builder.AppendFormat ("<p><strong>Requested URL: </strong>{0}</p>\r\n", resource_name);
                        
-                       if (showTrace && baseEx != null && http_code != 404) {
+                       if (showTrace && baseEx != null && http_code != 404 && http_code != 403) {
                                builder.Append ("<p><strong>Stack Trace: </strong></p>");
                                builder.Append ("<table summary=\"Stack Trace\" class=\"sampleCode\">\r\n<tr><td>");
                                WriteTextAsCode (builder, baseEx.ToString ());