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.
This commit is contained in:
Rasmus Wriedt Larsen
2022-03-23 11:22:07 +01:00
parent 64a5c5d9aa
commit e66932c728

View File

@@ -490,7 +490,7 @@ module HTTP {
* Gets a node that contributes to the URL of the request.
* Depending on the framework, a request may have multiple nodes which contribute to the URL.
*/
deprecated DataFlow::Node getURL() { result = super.getURL() }
deprecated DataFlow::Node getURL() { result = super.getURL() or result = super.getAUrlPart() }
/**
* Gets a data-flow node that contributes to the URL of the request.