Skip to content

Commit 051120e

Browse files
committed
add qldoc for ReflectedXssSanitizers
1 parent c60cec3 commit 051120e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/security/UnsafeHtmlConstructionCustomizations.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ module UnsafeHtmlConstruction {
3838
/** A sanitizer for HTML constructed from library input vulnerabilities. */
3939
abstract class Sanitizer extends DataFlow::Node { }
4040

41-
// inherit all the sanitizers from ReflectedXss
42-
class ReflectedXssSanitizers extends Sanitizer instanceof ReflectedXss::Sanitizer { }
41+
/** A sanitizer from the reflected-xss query, which is also a sanitizer for unsafe HTML construction. */
42+
private class ReflectedXssSanitizers extends Sanitizer instanceof ReflectedXss::Sanitizer { }
4343

4444
/** Gets a node that eventually ends up in the XSS `sink`. */
4545
private DataFlow::Node getANodeThatEndsInXssSink(ReflectedXss::Sink sink) {

0 commit comments

Comments
 (0)