Commit Graph

35 Commits

Author SHA1 Message Date
leitner 1d723c8da4 scan_html forgot to output '<' when it did not know the tag coming in 2014-09-17 13:43:54 +00:00
leitner 0aa50a19a4 add fmt_html_tagarg, fmt_xml 2014-09-16 15:41:35 +00:00
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
2014-03-13 22:25:20 +00:00
leitner fb5bd841a8 | not + 2014-02-25 17:51:29 +00:00
leitner 1d2add208f add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
leitner f28b0ee6b2 add fmt_ldapescape2 2007-06-28 22:46:58 +00:00
leitner e0a6a1cb84 try to catch malicious input in textcode fmt_* functions 2007-06-28 21:00:40 +00:00
leitner 1b17f47def escape more in fmt_ldapescape 2007-06-28 20:01:05 +00:00
leitner 3004b518ef switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
leitner d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
2006-05-18 06:02:43 +00:00
leitner 0a47d9ea13 fix scan_to_sa (Tim Lorenz) 2005-06-08 04:08:18 +00:00
leitner 828aa295f1 optimize fmt_base64 (Dan Gundlach) 2005-04-12 06:48:39 +00:00
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.
2005-03-30 13:22:17 +00:00
leitner f7809e36df scan_urlencoded2 is like scan_urlencoded, but it will not decode '+' in urls 2005-02-21 13:07:13 +00:00
leitner f52aa87441 more alloca fixes 2004-01-06 23:35:06 +00:00
leitner 60d00ede11 remove some warnings 2004-01-06 23:26:55 +00:00
leitner 3279ca84f8 don't use black list for urlencoding, use white list. 2003-09-29 01:12:36 +00:00
leitner c901631a00 embarassing cut&paste error 2003-09-24 22:51:40 +00:00
leitner 056760c5f1 add cescape stuff and two tests 2003-09-19 19:08:51 +00:00
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
2003-09-19 19:08:13 +00:00
leitner 93e07c1174 add + to unsafe characters in fmt_urlencoded 2003-09-15 10:45:26 +00:00
leitner 0546ea048c add html encoders
add vd (mldonkey support program) as test for socket API
2003-04-23 20:17:57 +00:00
leitner 71deab2eec remove warnings 2003-02-27 17:26:39 +00:00
leitner b4f14ed6f7 add stralloc versions of textcode (Kai Ruemmler) 2003-02-27 17:23:14 +00:00
leitner bdd15d2344 missing else 2002-07-21 11:27:46 +00:00
leitner e4832a2d23 scan_urlencoded should convert '+' to ' ' 2002-07-07 18:12:01 +00:00
leitner c536d87493 make fmt_hexdump use lowercase letters 2002-05-14 20:04:35 +00:00
leitner 58334b0ea2 new hexdump fmt and scan routines for textcode 2002-05-14 20:02:33 +00:00
leitner e0437a77ff add yenc 2002-04-30 20:48:13 +00:00
leitner f688af068b add url encoding 2002-04-30 18:39:37 +00:00
leitner 5a9a7e6f1a quoted unprintable 2002-04-30 18:24:10 +00:00
leitner 4d0eca89fc add base64 scanner 2002-04-30 17:55:41 +00:00
leitner 4f3f4ea52f test/uudecode now appears to actually work ;) 2002-04-30 14:38:18 +00:00
leitner 271b380cb3 more textcode stuff 2002-04-30 13:30:51 +00:00
leitner d570a9c307 add textcode api for uuencode and uudecode, base64 and quoted printable. 2002-04-29 21:03:08 +00:00