Skip to content

Commit b9acaa0

Browse files
committed
Make web.config match case insensitive
1 parent 16f3fc6 commit b9acaa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/lib/semmle/code/asp/WebConfig.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import csharp
88
* A `Web.config` file.
99
*/
1010
class WebConfigXml extends XmlFile {
11-
WebConfigXml() { this.getName().matches("%Web.config") }
11+
WebConfigXml() { this.getName().toLowerCase().matches("%web.config") }
1212
}
1313

1414
/**
1515
* A `Web.config` transformation file.
1616
*/
1717
class WebConfigReleaseTransformXml extends XmlFile {
18-
WebConfigReleaseTransformXml() { this.getName().matches("%Web.Release.config") }
18+
WebConfigReleaseTransformXml() { this.getName().toLowerCase().matches("%web.release.config") }
1919
}
2020

2121
/** A `<configuration>` tag in an ASP.NET configuration file. */

0 commit comments

Comments
 (0)