Fixed backslashes not beeing escaped.

This commit is contained in:
Robin Kupper committed 2011-04-13 12:26:09 +02:00
1 parent 4b32782d92
commit 175fec1c6d
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ public class Consumer extends TimerTask implements Runnable
playerName = playerName.substring(0, 32); playerName = playerName.substring(0, 32);
BlockRow row = new BlockRow(table, playerName, typeBefore, typeAfter, data, block.getX(), block.getY(), block.getZ()); BlockRow row = new BlockRow(table, playerName, typeBefore, typeAfter, data, block.getX(), block.getY(), block.getZ());
if (signtext != null) if (signtext != null)
row.signtext = signtext.replace("'", "\\'"); row.signtext = signtext.replace("\\", "\\\\").replace("'", "\\'");
if (ca != null) if (ca != null)
row.ca = ca; row.ca = ca;
if (!bqueue.offer(row)) if (!bqueue.offer(row))