2006/unicorn/src/org/w3c/unicorn/action LanguageAction.java,1.10,1.11

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv29391/src/org/w3c/unicorn/action

Modified Files:
	LanguageAction.java 
Log Message:
fixed parameters check

Index: LanguageAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/LanguageAction.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- LanguageAction.java	12 Oct 2009 13:12:26 -0000	1.10
+++ LanguageAction.java	12 Oct 2009 13:14:34 -0000	1.11
@@ -187,11 +187,11 @@
 			contextObjects.put("properties", baos.toString("UTF-8"));
 			contextObjects.put("changeLog", changeLog);
 			
-			if (req.getParameter("translator_name") != null)
+			if (!"".equals(req.getParameter("translator_name")))
 				contextObjects.put("translator_name", req.getParameter("translator_name"));
 			else
 				contextObjects.put("translator_name", "Anonymous");
-			if (req.getParameter("translator_mail") != null)
+			if (!"".equals(req.getParameter("translator_mail")))
 				contextObjects.put("translator_mail", req.getParameter("translator_mail"));
 			else 
 				contextObjects.put("translator_mail", "Not specified");

Received on Monday, 12 October 2009 13:14:40 UTC