forked from I2P_Developers/i2p.i2p
SAM message quoting fix
This commit is contained in:
@@ -951,10 +951,10 @@ class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatagramRece
|
|||||||
msg = msg.replace("\r", " ");
|
msg = msg.replace("\r", " ");
|
||||||
if (!msg.startsWith("\"")) {
|
if (!msg.startsWith("\"")) {
|
||||||
msg = msg.replace("\"", "");
|
msg = msg.replace("\"", "");
|
||||||
if (msg.contains("\"") || msg.contains("\t"))
|
if (msg.contains(" ") || msg.contains("\t"))
|
||||||
msg = '"' + msg + '"';
|
msg = '"' + msg + '"';
|
||||||
}
|
}
|
||||||
rv = " MESSAGE=\"" + msg + "\"";
|
rv = " MESSAGE=" + msg;
|
||||||
} else {
|
} else {
|
||||||
rv = "";
|
rv = "";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user