fix nbsp screwing up POST
This commit is contained in:
@ -24,7 +24,9 @@ public class ConfigLoggingHelper extends HelperBase {
|
|||||||
public String getMaxFileSize() {
|
public String getMaxFileSize() {
|
||||||
int bytes = _context.logManager().getFileSize();
|
int bytes = _context.logManager().getFileSize();
|
||||||
if (bytes <= 0) return "1.00 MB";
|
if (bytes <= 0) return "1.00 MB";
|
||||||
return DataHelper.formatSize2(bytes) + 'B';
|
// " " comes back in the POST as 0xc2 0xa0
|
||||||
|
// which is not recognized as whitespace and who knows why
|
||||||
|
return DataHelper.formatSize2(bytes).replace(" ", " ") + 'B';
|
||||||
}
|
}
|
||||||
public String getLogLevelTable() {
|
public String getLogLevelTable() {
|
||||||
StringBuilder buf = new StringBuilder(32*1024);
|
StringBuilder buf = new StringBuilder(32*1024);
|
||||||
|
Reference in New Issue
Block a user