Changeset 502cf72


Ignore:
Timestamp:
Oct 30, 2010 12:38:08 AM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c76058e
Parents:
9baa6e7
Message:

fix nbsp screwing up POST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java

    r9baa6e7 r502cf72  
    2525        int bytes = _context.logManager().getFileSize();
    2626        if (bytes <= 0) return "1.00 MB";
    27         return DataHelper.formatSize2(bytes) + 'B';
     27        // "&nbsp;" comes back in the POST as 0xc2 0xa0
     28        // which is not recognized as whitespace and who knows why
     29        return DataHelper.formatSize2(bytes).replace("&nbsp;", " ") + 'B';
    2830    }
    2931    public String getLogLevelTable() {
Note: See TracChangeset for help on using the changeset viewer.