[Title] Fixed to be invalid filename for all 0x20 characters
authorkh5325.kim <kh5325.kim@samsung.com>
Tue, 20 Nov 2012 13:23:04 +0000 (22:23 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Tue, 20 Nov 2012 13:23:04 +0000 (22:23 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.common/src/org/tizen/common/util/FilenameUtil.java

index 25dadb7..9015065 100755 (executable)
@@ -305,8 +305,7 @@ public class FilenameUtil
         {
             result = IS_NULL;
         }
-        
-        if(fileName.length() == 0)
+        else if(fileName.trim().length() == 0)
         {
             result = HAS_NO_NAME;
         }