https://issues.apache.org/bugzilla/show_bug.cgi?id=48848
--- Comment #2 from Konstantin Kolinko <knst.koli...@gmail.com> 2010-03-07 13:44:26 UTC --- Wow! Indeed, broken. Can reproduce it with 6.0.24. In org\apache\taglibs\standard\functions\Functions.java: public static boolean endsWith(String input, String substring) { if (input == null) input = ""; if (substring == null) substring = ""; int index = input.indexOf(substring); if (index == -1) return false; if (index == 0 && substring.length() == 0) return true; return (index == input.length() - substring.length()); } there must be int index = input.lastIndexOf(substring); though I more wonder why it does not just use String.endsWith(String) like fn:startsWith already does. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org