Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

String Index out of range: -1 | Intermittent Issue | Nessus Scan

$
0
0

Hi All,

 

We have received the following error while running Nessus scan on our application [http]. " String index out of range: -1, java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at coldfusion.runtime.CFPage.removeQuotes(CFPage.java:5542) at coldfusion.runtime.CFPage.GetHTTPRequestData(CFPage.java:5585) at coldfusion.runtime.CFPage.GetHTTPRequestData(CFPage.java:5554) ". This is an intermittent and has occured while doing a security scan. Please see the code that i have use below:

 

         <cfset reqData = getHTTPRequestData()>

         <cfif structKeyExists(reqData,"headers")>

         <cfif structKeyExists(reqData,"headers.X-Requested-With")>

                <cfif reqData.headers["X-Requested-With"] eq "XMLHttpRequest">

                 <cfsetting showdebugoutput="false">

                </cfif>

             </cfif>

         </cfif>

 

Can anyone please help me on this ?

 

regards,

Raghu N


Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>