62 Commits (77a2bbd17aa79296a389cfa3e269a3f7966edefb)

Author SHA1 Message Date
leitner dbd1f990c8 be less restrictive (RFC says NUL CR and LF need to be escaped) 6 years ago
leitner 708e34ab7f don't escape poop emoji (emit as utf8 instead)
if input is not valid utf8, encode each invalid byte as utf8 in output
7 years ago
leitner 2aceb52138 remove warning 7 years ago
leitner 5a803f3e7c update man pages 7 years ago
leitner 928da70f1d add man pages for scan_urlencoded* 7 years ago
leitner 42a78bb04e man page and unit tests for scan_hexdump 7 years ago
leitner c8156a9841 add man page and unit tests for scan_base64url 7 years ago
leitner 8d449d442b don't write one more byte in error case 7 years ago
leitner 527e2e7c5b add unit tests and man page for scan_ldapescape 7 years ago
leitner ac2df2bf20 bring scan_cescape up to speed 7 years ago
leitner 8526ae3d0d fix utf-8 json encoding for outside basic multilingual plane 7 years ago
leitner 84d3e6a7b4 fmt_jsonescape: convert utf-8 >ffff to \u escaped surrogate pair 7 years ago
leitner b9eb81c58f move unit tests into each file (compile with -DUNITTEST) 8 years ago
leitner 760598ec2f #include <foo.h> -> #include <libowfat/foo.h> 8 years ago
leitner dba47741bf remove new compiler warnings from gcc 7 8 years ago
leitner 660c314341 a few more test suites
escapecharc now supports non-ascii
8 years ago
leitner e89f098743 remove signedness warnings 8 years ago
leitner ce64436772 document scan_uuencoded 8 years ago
leitner 959151a24d add man page for scan_base64, handle partial blocks better 8 years ago
leitner 41db97d380 improve json escape decoder, add test suite 8 years ago
leitner 3c68ae0dcc scan_jsonescape ends when it sees an unescaped " 8 years ago
leitner c493b262ac handle \n etc 8 years ago
leitner 26a193bff0 - and _ are also safe characters 8 years ago
leitner d26b8082d8 shut up new gcc 6 warnings 9 years ago
leitner 7f829a36bc add base64url support 9 years ago
leitner fce165fdcb remove dead store 10 years ago
leitner 8bdf66a1f5 add scan_html_tagarg 10 years ago
leitner 1d723c8da4 scan_html forgot to output '<' when it did not know the tag coming in 10 years ago
leitner 0aa50a19a4 add fmt_html_tagarg, fmt_xml 10 years ago
leitner 35942878c2 $ make WERROR=-Werror now builds with -Werror
add some single char escaping routines to fmt.h
pull in html5 entities from w3c and use those to do a proper scan_html decoding
fix an off-by-one in fmt_to_array
add a ton of unit tests for the fmt routines
11 years ago
leitner fb5bd841a8 | not + 11 years ago
leitner 1d2add208f add json encoding routines to textcode 11 years ago
leitner f28b0ee6b2 add fmt_ldapescape2 18 years ago
leitner e0a6a1cb84 try to catch malicious input in textcode fmt_* functions 18 years ago
leitner 1b17f47def escape more in fmt_ldapescape 18 years ago
leitner 3004b518ef switch to size_t and ssize_t 18 years ago
leitner d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
19 years ago
leitner 0a47d9ea13 fix scan_to_sa (Tim Lorenz) 20 years ago
leitner 828aa295f1 optimize fmt_base64 (Dan Gundlach) 20 years ago
leitner 60f3320ae0 allow specifying more characters to encode for subset encoders (for
example, you can say that fmt_quotedprintable should also escape ':', if
you want to use ':' as separator in a data file.
20 years ago
leitner f7809e36df scan_urlencoded2 is like scan_urlencoded, but it will not decode '+' in urls 20 years ago
leitner f52aa87441 more alloca fixes 21 years ago
leitner 60d00ede11 remove some warnings 21 years ago
leitner 3279ca84f8 don't use black list for urlencoding, use white list. 21 years ago
leitner c901631a00 embarassing cut&paste error 21 years ago
leitner 056760c5f1 add cescape stuff and two tests 21 years ago
leitner a8f6a1c121 remove special case stralloc textcode functions
write generic stralloc and array textcode wrapper functions
change textcode API to use long instead of int
add cescape fmt and scan functions to textcode
add fmt_foldwhitespace to textcode
21 years ago
leitner 93e07c1174 add + to unsafe characters in fmt_urlencoded 22 years ago
leitner 0546ea048c add html encoders
add vd (mldonkey support program) as test for socket API
22 years ago
leitner 71deab2eec remove warnings 22 years ago