File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
javascript/ql/lib/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ private module HandlebarsTaintSteps {
49
49
50
50
/**
51
51
* Gets a reference to a parameter of a registered Handlebars helper.
52
- *
52
+ *
53
53
* ```javascript
54
- * function loudHelper(text) {
54
+ * function loudHelper(text) {
55
55
* return text.toUpperCase();
56
56
* }
57
57
*
@@ -61,8 +61,7 @@ private module HandlebarsTaintSteps {
61
61
* the `FunctionNode` representing `function loudHelper`, and return its parameter `text`.
62
62
*/
63
63
private DataFlow:: ParameterNode getRegisteredHelperParam (
64
- string helperName , DataFlow:: FunctionNode helperFunction ,
65
- int paramIndex
64
+ string helperName , DataFlow:: FunctionNode helperFunction , int paramIndex
66
65
) {
67
66
exists ( DataFlow:: CallNode registerHelperCall |
68
67
registerHelperCall = any ( Handlebars:: Handlebars hb ) .getAMemberCall ( "registerHelper" ) and
@@ -72,8 +71,9 @@ private module HandlebarsTaintSteps {
72
71
)
73
72
}
74
73
75
- /** Gets a `call` (which is a block wrapped inside curly braces inside the template) from `templateText`.
76
- *
74
+ /**
75
+ * Gets a `call` (which is a block wrapped inside curly braces inside the template) from `templateText`.
76
+ *
77
77
* For example, `getAHelperCallFromTemplate("Hello {{loud customer}}")` will return `"loud customer"`.
78
78
*/
79
79
bindingset [ templateText]
You can’t perform that action at this time.
0 commit comments