[content] Fix bug on ContentDirectory
authorSeokpil Park <seokpil.park@samsung.com>
Mon, 29 Apr 2013 09:59:50 +0000 (18:59 +0900)
committerSeokpil Park <seokpil.park@samsung.com>
Mon, 29 Apr 2013 09:59:54 +0000 (18:59 +0900)
Change-Id: Ic409ccac0d59bcc9fa9a380ed820b9e66e4db239
Signed-off-by: Seokpil Park <seokpil.park@samsung.com>
src/FCnt_ContentDirectoryImpl.cpp

index cd906dc..df87e3a 100644 (file)
@@ -222,10 +222,14 @@ _ContentDirectoryImpl::CreateFolderFilter(bool isMultiContentType, const Tizen::
                        SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Append operation.");
                }
 
-               r = folderPath.Insert('"', 0);
-               SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Insert operation.");
-               r = folderPath.Insert('"', folderPath.GetLength());
-               SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Insert operation.");
+               r = folderPath.Replace("\'", "''");
+               SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Replace operation for nameExpr.");
+
+               r = folderPath.Insert('\'', 0);
+               SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Insert operation for nameExpr.");
+
+               r = folderPath.Insert('\'', folderPath.GetLength());
+               SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Insert operation for nameExpr.");
 
                r = inputCondition.Append(folderPath);
                SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Append operation.");