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 {
156156class StringSplitCall extends DataFlow:: MethodCallNode {
157157 StringSplitCall ( ) {
158158 this .getMethodName ( ) = "split" and
159- ( getNumArgument ( ) = [ 1 , 2 ] or getReceiver ( ) .mayHaveStringValue ( _) )
159+ ( getNumArgument ( ) = [ 1 , 2 ] or getReceiver ( ) .mayHaveStringValue ( _) )
160160 }
161161
162162 /**
Original file line number Diff line number Diff line change @@ -287,7 +287,8 @@ module DomBasedXss {
287287 QueryPrefixSanitizer ( ) {
288288 this = splitCall .getASubstringRead ( 0 ) and
289289 splitCall .getSeparator ( ) = "?" and
290- splitCall .getBaseString ( ) .getALocalSource ( ) = [ DOM:: locationRef ( ) , DOM:: locationRef ( ) .getAPropertyRead ( "href" ) ]
290+ splitCall .getBaseString ( ) .getALocalSource ( ) =
291+ [ DOM:: locationRef ( ) , DOM:: locationRef ( ) .getAPropertyRead ( "href" ) ]
291292 }
292293 }
293294
You can’t perform that action at this time.
0 commit comments