Jo-Philipp Wich
2bfb1e012a
uhttpd URL-codec bug fixes.
...
* Fixed output-buffer-overflow bug in uh_urlencode() and uh_urldecode() [tested
input-buffer index against output-buffer length]. In reality, this would not
typically cause an overflow on decode, where the output string would be
expected to be shorter than the input string; and uh_urlencode() seems to have
been unreferenced in the source.
* Fixed bug: uh_urlencode() and uh_urldecode() both read one extra byte from the
input-string. While this could manifest in C code, the result was most
egregious when called from Lua, where it caused an extra null byte to be
embedded at the end of the output string.
* uh_urlencode() cleanup: removed redundant bitwise-and.
Signed-off-by: David Favro <openwrt@meta-dynamic.com>
SVN-Revision: 31569
2012-05-03 17:19:16 +00:00
Jo-Philipp Wich
44da6400cd
uhttpd: cope with DES crypted passwd entries by not relying on a leading dollar sign to indicate a cipher
...
SVN-Revision: 28886
2011-11-09 18:55:28 +00:00
Jo-Philipp Wich
3d035a6f6a
uhttpd: rework CyaSSL and OpenSSL integration; move protected recv() and send() operations below the ssl layer - fixes hangs when accessing via https
...
SVN-Revision: 28761
2011-11-05 03:19:07 +00:00
Jo-Philipp Wich
f38a320e69
uhttpd: protect tcp receive operations with select, make tcp keep-alive optional ( #8272 )
...
SVN-Revision: 24952
2011-01-09 23:35:45 +00:00
Jo-Philipp Wich
5931a158a4
uhttpd: redirect to same location with trailing slash appended if directories are requested
...
SVN-Revision: 23952
2010-11-10 20:52:30 +00:00
Jo-Philipp Wich
fa644368ed
uhttpd: make it work without shadow password support
...
SVN-Revision: 23897
2010-11-06 16:19:04 +00:00
Jo-Philipp Wich
93c38f2b86
uhttpd: fix segfault triggered by Basic Auth checking
...
SVN-Revision: 22805
2010-08-25 21:38:48 +00:00
Jo-Philipp Wich
cbdeb30a1b
uhttpd: - fix parsing of interpreter entries in the config file, fixes serving of static files as .cgi with X-Wrt - better cope with connection aborts, especially during header transfer - fix return value checking of TLS reads and writes, solves some blocking issues
...
SVN-Revision: 22692
2010-08-18 00:04:52 +00:00
Jo-Philipp Wich
f2b534d341
uhttpd: - more robust handling of network failures on static file serving - support unlimited amount of authentication realms, listener and client sockets - support for interpreters (.php => /usr/bin/php-cgi)
...
SVN-Revision: 22630
2010-08-14 00:54:24 +00:00
Jo-Philipp Wich
3d99f03082
uhttpd: add option to reject requests from RFC1918 IPs to public server IPs (DNS rebinding countermeasure)
...
SVN-Revision: 22589
2010-08-11 00:05:34 +00:00
Jo-Philipp Wich
b688fcaa5c
uhttpd: - fix a compile warning - support custom index file names - support custom error pages (or cgi handler) - add option to disable directory listings - add REDIRECT_STATUS for CGI requests, fixes php-cgi
...
SVN-Revision: 22366
2010-07-23 13:15:22 +00:00
Jo-Philipp Wich
3df8df720a
uhttpd: - ignore authentication realms that refer to user accounts with no password set yet (X-Wrt compatibility) - fix off-by-one in CGI header parsing, fixes cgi programs that emit bad header lines (AsteriskGUI compatibility) - bump version
...
SVN-Revision: 21121
2010-04-24 11:07:41 +00:00
Jo-Philipp Wich
14428874ae
uhttpd: fix bug in path canonization introduced by r20883
...
SVN-Revision: 20885
2010-04-15 20:08:56 +00:00
Jo-Philipp Wich
20ef055c2f
uhttpd: - make network timeout configurable, increase default to 30 seconds ( #7067 ) - follow symlinks in docroot and add option to disable that - fix mimetype detection for files with combined extensions (.tar.gz, ...)
...
SVN-Revision: 20883
2010-04-15 19:46:35 +00:00
Jo-Philipp Wich
4172149f89
uhttpd: block SIGCHLD until it is expected ( #6957 )
...
SVN-Revision: 20513
2010-03-27 14:31:35 +00:00
Jo-Philipp Wich
169642253f
add uhttpd (moved from LuCI trunk)
...
SVN-Revision: 20428
2010-03-25 15:46:16 +00:00