esapi-java-legacy
esapi-java-legacy copied to clipboard
Regular Expression Hangs (Validator.URL)
From [email protected] on November 24, 2011 21:50:30
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: http://code.google.com/p/owasp-esapi-java/issues/detail?id=255