Skip to content

Commit f70e0b5

Browse files
authored
Merge pull request #22419 from jzabroski/patch-1
Fixes docs for directoryBrowse enabled examples
2 parents daa37c0 + 748fbc7 commit f70e0b5

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

csharp/ql/src/Security Features/CWE-548/ASPNetDirectoryListing.qhelp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ If this configuration may be used in production, remove the <code>directoryBrows
2121
<example>
2222

2323
<p>
24-
The following example shows the <code>directoryBrowse</code> <code>enable</code> attribute set to true in a <code>Web.config</code> file for ASP.NET:
24+
The following example shows the <code>directoryBrowse</code> <code>enabled</code> attribute set to true in a <code>Web.config</code> file for ASP.NET:
2525
</p>
2626

2727
<sample src="Web.config.bad" />
2828

2929
<p>
30-
To fix this problem, the <code>enable</code> attribute should be set to <code>false</code>, or the <code>directoryBrowse</code> element should be removed completely:
30+
To fix this problem, the <code>enabled</code> attribute should be set to <code>false</code>, or the <code>directoryBrowse</code> element should be removed completely:
3131
</p>
3232

3333
<sample src="Web.config.good" />
@@ -36,8 +36,8 @@ To fix this problem, the <code>enable</code> attribute should be set to <code>fa
3636
<references>
3737

3838
<li>
39-
MSDN:
40-
<a href="https://msdn.microsoft.com/en-us/library/ms691327(v=vs.90).aspx">directoryBrowse element</a>.
39+
Microsoft Learn:
40+
<a href="https://learn.microsoft.com/en-us/iis/configuration/system.webserver/directorybrowse#attributes">directoryBrowse element</a>.
4141
</li>
4242

4343

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<configuration>
33
<system.webServer>
4-
<directoryBrowse enable="true"/>
4+
<directoryBrowse enabled="true"/>
55
...
6-
</system.web>
7-
</configuration>
6+
</system.webServer>
7+
</configuration>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<configuration>
33
<system.webServer>
4-
<directoryBrowse enable="false"/>
4+
<directoryBrowse enabled="false"/>
55
...
6-
</system.web>
7-
</configuration>
6+
</system.webServer>
7+
</configuration>

0 commit comments

Comments
 (0)