File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
addOns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,6 @@ private void searchForMathsExecution(
365365 }
366366
367367 int statusCode = testMessage .getResponseHeader ().getStatusCode ();
368- String redirectUrl = testMessage .getResponseHeader ().getHeader ("Location" );
369368
370369 if (fixSyntax ) {
371370 codeFixPrefixes = WAYS_TO_FIX_CODE_SYNTAX ;
@@ -408,7 +407,7 @@ private void searchForMathsExecution(
408407 HttpMessage newMsg = getNewMsg ();
409408
410409 setParameter (newMsg , paramName , renderTest );
411- if (!(statusCode >= 300 && statusCode < 400 && redirectUrl != null )) {
410+ if (!(statusCode >= 300 && statusCode < 400 )) {
412411 sendAndReceive (newMsg , false );
413412
414413 for (SinkPoint sink : sinksToTest ) {
@@ -450,7 +449,7 @@ private void searchForMathsExecution(
450449 }
451450 }
452451 }
453- if (statusCode >= 300 && statusCode < 400 && redirectUrl != null ) {
452+ if (statusCode >= 300 && statusCode < 400 ) {
454453 try {
455454 for (TemplateFormat format : TEMPLATE_FORMATS ) {
456455 // Construct the SSTI payload
You can’t perform that action at this time.
0 commit comments