33844fa4d7ccbffb892fb9ba48e0160b0ece0bf8
FAQ/Preventing-information-leaks.md
| ... | ... | @@ -10,8 +10,9 @@ More information regarding information leakage can be found at: https://www.owa |
| 10 | 10 | |
| 11 | 11 | Adding the below code to the rs.aspx page will help you control what a user is able to see. The “Prohibited” quotes is where you put the literal information displayed to the end user. |
| 12 | 12 | |
| 13 | -##Global.asax (C♯) |
|
| 14 | -'''<script runat="server"> |
|
| 13 | +##Rs.aspx (C♯) |
|
| 14 | +```csharp |
|
| 15 | +<script runat="server"> |
|
| 15 | 16 | private bool SystemInfoPresents(ControlCollection controls) |
| 16 | 17 | { |
| 17 | 18 | foreach (Control c in controls) |
| ... | ... | @@ -32,4 +33,5 @@ private bool SystemInfoPresents(ControlCollection controls) |
| 32 | 33 | Controls.Add(new LiteralControl("Prohibited")); |
| 33 | 34 | } |
| 34 | 35 | } |
| 35 | - </script>''' |
|
| ... | ... | \ No newline at end of file |
| 0 | + </script> |
|
| 1 | +``` |
|
| ... | ... | \ No newline at end of file |