Issue 450 - Double escape our double escape so that single quotes in data don't cause uploads to fail

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2265 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2011-09-29 21:26:53 +00:00
parent 0210329e8f
commit 2deae9d785

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, Thomas F. Morris
* Copyright (c) 2010,2011 Thomas F. Morris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -416,7 +416,7 @@ public class UploadCommand extends Command {
sbValues.append("'");
if (cellData != null && cellData.text != null) {
sbValues.append(cellData.text.replaceAll("'", "\\'"));
sbValues.append(cellData.text.replaceAll("'", "\\\\'"));
}
sbValues.append("'");
}