demba90 / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
Other
0 stars 0 forks source link

Regular Expression Hangs (Validator.URL) #255

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

public class HelloWorldTest extends TestCase
{
   @Test
   public void testIsValidEmail()
   {
      Validator instance = ESAPI.validator();
      System.out.print("before hang");

        instance.isValidInput("test", "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxx.com:8000?msg=%21", "URL", 2000, false); 
      System.out.print("after hang");
   }
}

What is the expected output? What do you see instead?
Validator.URL should not hang on an invalid url.

What version of the product are you using? On what operating system?
JAVA
ESAPI 2.01
JDK 1.6.26

Original issue reported on code.google.com by clock...@gmail.com on 25 Nov 2011 at 2:50