forked from I2P_Developers/i2p.i2p
* Properties: Don't play games with \r and \n on load/save,
it was causing fatal issues on DOS if your username started
with r or n
This commit is contained in:
@@ -1053,8 +1053,9 @@ public class Router {
|
||||
String val = _config.getProperty(key);
|
||||
// Escape line breaks before saving.
|
||||
// Remember: "\" needs escaping both for regex and string.
|
||||
val = val.replaceAll("\\r","\\\\r");
|
||||
val = val.replaceAll("\\n","\\\\n");
|
||||
// NOOO - see comments in DataHelper
|
||||
//val = val.replaceAll("\\r","\\\\r");
|
||||
//val = val.replaceAll("\\n","\\\\n");
|
||||
buf.append(key).append('=').append(val).append('\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user