File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
156
156
class StringSplitCall extends DataFlow:: MethodCallNode {
157
157
StringSplitCall ( ) {
158
158
this .getMethodName ( ) = "split" and
159
- ( getNumArgument ( ) = [ 1 , 2 ] or getReceiver ( ) .mayHaveStringValue ( _) )
159
+ ( getNumArgument ( ) = [ 1 , 2 ] or getReceiver ( ) .mayHaveStringValue ( _) )
160
160
}
161
161
162
162
/**
Original file line number Diff line number Diff line change @@ -287,7 +287,8 @@ module DomBasedXss {
287
287
QueryPrefixSanitizer ( ) {
288
288
this = splitCall .getASubstringRead ( 0 ) and
289
289
splitCall .getSeparator ( ) = "?" and
290
- splitCall .getBaseString ( ) .getALocalSource ( ) = [ DOM:: locationRef ( ) , DOM:: locationRef ( ) .getAPropertyRead ( "href" ) ]
290
+ splitCall .getBaseString ( ) .getALocalSource ( ) =
291
+ [ DOM:: locationRef ( ) , DOM:: locationRef ( ) .getAPropertyRead ( "href" ) ]
291
292
}
292
293
}
293
294
You can’t perform that action at this time.
0 commit comments