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 {
4949
5050 /**
5151 * Gets a reference to a parameter of a registered Handlebars helper.
52- *
52+ *
5353 * ```javascript
54- * function loudHelper(text) {
54+ * function loudHelper(text) {
5555 * return text.toUpperCase();
5656 * }
5757 *
@@ -61,8 +61,7 @@ private module HandlebarsTaintSteps {
6161 * the `FunctionNode` representing `function loudHelper`, and return its parameter `text`.
6262 */
6363 private DataFlow:: ParameterNode getRegisteredHelperParam (
64- string helperName , DataFlow:: FunctionNode helperFunction ,
65- int paramIndex
64+ string helperName , DataFlow:: FunctionNode helperFunction , int paramIndex
6665 ) {
6766 exists ( DataFlow:: CallNode registerHelperCall |
6867 registerHelperCall = any ( Handlebars:: Handlebars hb ) .getAMemberCall ( "registerHelper" ) and
@@ -72,8 +71,9 @@ private module HandlebarsTaintSteps {
7271 )
7372 }
7473
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+ *
7777 * For example, `getAHelperCallFromTemplate("Hello {{loud customer}}")` will return `"loud customer"`.
7878 */
7979 bindingset [ templateText]
You can’t perform that action at this time.
0 commit comments