Qunit-Javascript Unit Testing Framework issue

Qunit-Javascript Unit Testing Framework issue

Hi,

I have faced an issue in Qunit-Javascript Unit Testing Framework. The error is saying that the input is not validated in the below highlighted code.

File Name : qunit.js

synchronize(function() {  

             text = text.replace(/(^s*|s*$)/g, "")

             if ( window.location )

                  {

                    window.location.href = window.location.href.match(/^(.+?)(?.*)?$/)[1] + "?" + encodeURIComponent(text);

                   }

                              }

Appreciate your help!

Thanks,
Jeyachandran S