W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

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

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 12 Oct 2009 13:14:36 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MxKjU-0007eL-FM@lionel-hutz.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC