diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-14 15:44:32 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-14 15:44:32 +0100 |
commit | 547a492611a8d6831d88b697e2785658a9c06177 (patch) | |
tree | c5fa38683acc29e4d70396d5f4d96346f453b469 /src/config | |
parent | c2fbe0993228b2b62f8a916bae5271097254ce5c (diff) | |
download | chawan-547a492611a8d6831d88b697e2785658a9c06177.tar.gz |
Various refactorings & fixes
* disallow Stream interface usage on non-blocking PosixStreams * do not read estream of forkserver byte-by-byte (it's slow) * do not call writeData with a zero len in formdata * do not quote numbers in mailcap quoteFile * remove some unused stuff
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/mailcap.nim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config/mailcap.nim b/src/config/mailcap.nim index fc75086d..0caf7f17 100644 --- a/src/config/mailcap.nim +++ b/src/config/mailcap.nim @@ -216,11 +216,10 @@ proc quoteFile(file: string, qs: QuoteState): string = elif qs == QS_NORMAL: s &= '\\' # double-quoted: append normally - of '_', '.', ':', '/': + of AsciiAlphaNumeric, '_', '.', ':', '/': discard # no need to quote - else: - if c notin AsciiAlpha and qs == QS_NORMAL: - s &= '\\' + elif qs == QS_NORMAL: + s &= '\\' s &= c return s |