Author: prabhat.jha(a)jboss.com
Date: 2009-01-29 14:08:04 -0500 (Thu, 29 Jan 2009)
New Revision: 12708
Modified:
branches/Enterprise_Portal_Platform_4_3/core-identity/src/main/org/jboss/portal/core/identity/ui/validators/UsernameValidator.java
Log:
quote in username is not allowed anymore
Modified:
branches/Enterprise_Portal_Platform_4_3/core-identity/src/main/org/jboss/portal/core/identity/ui/validators/UsernameValidator.java
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core-identity/src/main/org/jboss/portal/core/identity/ui/validators/UsernameValidator.java 2009-01-29
17:32:33 UTC (rev 12707)
+++
branches/Enterprise_Portal_Platform_4_3/core-identity/src/main/org/jboss/portal/core/identity/ui/validators/UsernameValidator.java 2009-01-29
19:08:04 UTC (rev 12708)
@@ -65,7 +65,7 @@
registrationService = (RegistrationService)
portletContext.getAttribute("RegistrationService");
// if (username.length() >= 5 && (Pattern.matches(NICKNAME_VALIDATION,
username)))
- if (username.contains("<") || username.contains(">"))
+ if (username.contains("<") || username.contains(">") ||
username.contains("\"") || username.contains("\'"))
{
throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,
bundle.getString("IDENTITY_VALIDATION_ERROR_USERNAME_ERROR"),
Show replies by date