We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc73d9f commit 266c104Copy full SHA for 266c104
1 file changed
javascript/ql/src/semmle/javascript/frameworks/Templating.qll
@@ -281,8 +281,15 @@ module Templating {
281
* likely template file being referenced.
282
*/
283
abstract class TemplateFileReference extends DataFlow::Node {
284
- /** Gets the value that identifies the template. Defaults to `getStringValue()`. */
285
- string getValue() { result = getStringValue() }
+ /** Gets the value that identifies the template. */
+ string getValue() {
286
+ result = getStringValue()
287
+ or
288
+ exists(API::Node node |
289
+ this = node.getARhs() and
290
+ result = node.getAValueReachingRhs().getStringValue()
291
+ )
292
+ }
293
294
/** Gets the template file referenced by this node. */
295
final TemplateFile getTemplateFile() {
0 commit comments