Skip to content

Commit e66932c

Browse files
committed
Ruby: Make deprecated getURL work with new modeling
So an "old" query using the deprecated predicate, will still find the same results, even when the modeling has been updated.
1 parent 64a5c5d commit e66932c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/Concepts.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ module HTTP {
490490
* Gets a node that contributes to the URL of the request.
491491
* Depending on the framework, a request may have multiple nodes which contribute to the URL.
492492
*/
493-
deprecated DataFlow::Node getURL() { result = super.getURL() }
493+
deprecated DataFlow::Node getURL() { result = super.getURL() or result = super.getAUrlPart() }
494494

495495
/**
496496
* Gets a data-flow node that contributes to the URL of the request.

0 commit comments

Comments
 (0)