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:
parent
0210329e8f
commit
2deae9d785
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2010, Thomas F. Morris
|
* Copyright (c) 2010,2011 Thomas F. Morris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -416,7 +416,7 @@ public class UploadCommand extends Command {
|
|||||||
|
|
||||||
sbValues.append("'");
|
sbValues.append("'");
|
||||||
if (cellData != null && cellData.text != null) {
|
if (cellData != null && cellData.text != null) {
|
||||||
sbValues.append(cellData.text.replaceAll("'", "\\'"));
|
sbValues.append(cellData.text.replaceAll("'", "\\\\'"));
|
||||||
}
|
}
|
||||||
sbValues.append("'");
|
sbValues.append("'");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user