Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | uhttpd: display errors in init script, code formatting changes, bump package ↵ | Jo-Philipp Wich | 2012-05-03 | 7 | -496/+535 |
| | | | | | | version SVN-Revision: 31572 | ||||
* | uhttpd: added uhttpd.docroot | Jo-Philipp Wich | 2012-05-03 | 4 | -5/+13 |
| | | | | | | | | | | | | | Passes the document-root to the Lua handler by placing it in uhttpd.docroot. It could alternatively be placed in env.DOCUMENT_ROOT which would more closely resemble the CGI protocol; but would mean that it is not available at the time when the handler-chunk is loaded but rather not until the handler is called, without any code savings. Signed-off-by: David Favro <openwrt@meta-dynamic.com> SVN-Revision: 31571 | ||||
* | Fixed: [PATCH 2/3] uhttpd URL-codec enhancements. | Jo-Philipp Wich | 2016-03-20 | 3 | -21/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My apologies, the 2nd of those patches had a syntax error -- that's what I get for making a last-minute edit, even to the comments, without testing! :-p Here is the corrected patch. -- David From d259cff104d2084455476b82e92a3a27524f4263 Mon Sep 17 00:00:00 2001 From: David Favro <openwrt@meta-dynamic.com> Date: Fri, 27 Apr 2012 14:17:52 -0400 Subject: [PATCH] uhttpd URL-codec enhancements. * uh_urlencode() and uh_urldecode() now return an error condition for buffer-overflow and malformed-encoding rather than normal return with corrupt or truncated data. As HTTP request processing is currently implemented, this causes a 404 HTTP status returned to the client, while 400 is more appropriate. * Exposed urlencode() to Lua. * Lua's uhttpd.urlencode() and .urldecode() now raise an error condition for buffer-overflow and malformed-encoding rather than normal return with incorrect data. SVN-Revision: 31570 | ||||
* | uhttpd URL-codec bug fixes. | Jo-Philipp Wich | 2012-05-03 | 1 | -5/+11 |
| | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | uhttpd: reorder compiler flags to fix native build on Ubuntu 11.x | Jo-Philipp Wich | 2012-03-13 | 1 | -1/+1 |
| | | | | SVN-Revision: 30936 | ||||
* | uhttpd: cope with variable number of spaces in header lines (#11079) | Jo-Philipp Wich | 2012-03-04 | 2 | -5/+8 |
| | | | | SVN-Revision: 30806 | ||||
* | uhttpd: prevent linking uhttpd binary against crypto libraries | Jo-Philipp Wich | 2011-11-15 | 1 | -1/+1 |
| | | | | SVN-Revision: 29152 | ||||
* | uhttpd: cope with DES crypted passwd entries by not relying on a leading ↵ | Jo-Philipp Wich | 2011-11-09 | 2 | -6/+3 |
| | | | | | | dollar sign to indicate a cipher SVN-Revision: 28886 | ||||
* | package/uhttpd: use new service wrapper | Nicolas Thill | 2011-11-07 | 2 | -11/+9 |
| | | | | SVN-Revision: 28841 | ||||
* | uhttpd: provide rpath-link flag, thanks mazilo | Jo-Philipp Wich | 2011-11-07 | 1 | -1/+1 |
| | | | | SVN-Revision: 28792 | ||||
* | uhttpd: Fix wrong certificate options with multiple words | Jo-Philipp Wich | 2011-11-06 | 1 | -1/+1 |
| | | | | | | | | | For instance two word city names will result in weird certificates. Therefore adding the missing quotations. Signed-off-by: Linus Lüssing <linus.luessing@web.de> SVN-Revision: 28776 | ||||
* | uhttpd: fix Makefiles and linking of tls plugin | Jo-Philipp Wich | 2011-11-05 | 2 | -7/+12 |
| | | | | SVN-Revision: 28769 | ||||
* | uhttpd: bump version | Jo-Philipp Wich | 2011-11-05 | 1 | -1/+1 |
| | | | | SVN-Revision: 28762 | ||||
* | uhttpd: rework CyaSSL and OpenSSL integration; move protected recv() and ↵ | Jo-Philipp Wich | 2011-11-05 | 5 | -51/+210 |
| | | | | | | send() operations below the ssl layer - fixes hangs when accessing via https SVN-Revision: 28761 | ||||
* | uhttpd: fix bad pointer use in previous commit | Jo-Philipp Wich | 2011-09-18 | 1 | -1/+1 |
| | | | | SVN-Revision: 28257 | ||||
* | uhttpd: fix possible CGI header line parsing beyound the empty line, thanks ↵ | Jo-Philipp Wich | 2011-09-18 | 2 | -5/+5 |
| | | | | | | Linus Luessing for spotting it SVN-Revision: 28254 | ||||
* | uhttpd: properly match mimetype entries which cover the whole filename (#8236) | Jo-Philipp Wich | 2011-09-04 | 2 | -3/+3 |
| | | | | SVN-Revision: 28160 | ||||
* | uhttpd: add "application/x-ns-proxy-autoconfig" mime type (#8236) | Jo-Philipp Wich | 2011-09-02 | 2 | -1/+4 |
| | | | | SVN-Revision: 28149 | ||||
* | uhttpd: pass feature flags (#9742) | Jo-Philipp Wich | 2011-07-19 | 1 | -1/+7 |
| | | | | SVN-Revision: 27689 | ||||
* | uhttpd: support building against openssl instead of cyassl, minor cleanups ↵ | Jo-Philipp Wich | 2011-07-18 | 6 | -27/+98 |
| | | | | | | (#7827) SVN-Revision: 27686 | ||||
* | uhttpd: unblock signals in CGI childs, solves hanging ssh logout after ↵ | Jo-Philipp Wich | 2011-07-17 | 3 | -3/+13 |
| | | | | | | server restart from within LuCI and similar problems SVN-Revision: 27628 | ||||
* | uhttpd: Moved uhttpd to Network|Web Servers/Proxies submenu, just like all ↵ | Daniel Dickinson | 2011-03-12 | 1 | -0/+1 |
| | | | | | | the other web serves and proxies from the packages feed SVN-Revision: 26062 | ||||
* | uhttpd: substitute "+" with space when using the -d flag, lazyload tls support | Jo-Philipp Wich | 2011-01-28 | 2 | -41/+61 |
| | | | | SVN-Revision: 25220 | ||||
* | uhttpd: protect tcp receive operations with select, make tcp keep-alive ↵ | Jo-Philipp Wich | 2011-01-09 | 6 | -22/+54 |
| | | | | | | optional (#8272) SVN-Revision: 24952 | ||||
* | uhttpd: allow lowercase http header fields (#8513) | Jo-Philipp Wich | 2010-12-24 | 2 | -3/+3 |
| | | | | SVN-Revision: 24823 | ||||
* | uhttpd: redirect to same location with trailing slash appended if ↵ | Jo-Philipp Wich | 2010-11-10 | 4 | -5/+22 |
| | | | | | | directories are requested SVN-Revision: 23952 | ||||
* | uhttpd: make it work without shadow password support | Jo-Philipp Wich | 2010-11-06 | 3 | -2/+18 |
| | | | | SVN-Revision: 23897 | ||||
* | uhttpd: revert unrelated change in previous commit | Jo-Philipp Wich | 2010-10-05 | 1 | -3/+1 |
| | | | | SVN-Revision: 23261 | ||||
* | uhttpd: add /etc/uhttpd.key and /etc/uhttpd.crt to conffile hints | Jo-Philipp Wich | 2010-10-05 | 2 | -1/+5 |
| | | | | SVN-Revision: 23260 | ||||
* | add maintainer information | Jo-Philipp Wich | 2010-09-30 | 1 | -0/+1 |
| | | | | SVN-Revision: 23159 | ||||
* | uhttpd: break tight loop when receiving eof during header reading (#7904) | Jo-Philipp Wich | 2010-09-09 | 2 | -1/+5 |
| | | | | SVN-Revision: 22988 | ||||
* | uhttpd: fix segfault triggered by Basic Auth checking | Jo-Philipp Wich | 2010-08-25 | 2 | -3/+1 |
| | | | | SVN-Revision: 22805 | ||||
* | uhttpd: - fix parsing of interpreter entries in the config file, fixes ↵ | Jo-Philipp Wich | 2010-08-18 | 8 | -108/+141 |
| | | | | | | 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 | ||||
* | uhttpd: - more robust handling of network failures on static file serving - ↵ | Jo-Philipp Wich | 2010-08-14 | 10 | -255/+364 |
| | | | | | | support unlimited amount of authentication realms, listener and client sockets - support for interpreters (.php => /usr/bin/php-cgi) SVN-Revision: 22630 | ||||
* | uhttpd: fix segmentation fault triggered by invalid header line | Jo-Philipp Wich | 2010-08-12 | 1 | -1/+2 |
| | | | | SVN-Revision: 22607 | ||||
* | uhttpd: - abort file serving if client connection is lost (#7742) - don't ↵ | Jo-Philipp Wich | 2010-08-11 | 3 | -44/+50 |
| | | | | | | send bad request headers twice SVN-Revision: 22602 | ||||
* | uhttpd: make init script less verbose | Jo-Philipp Wich | 2010-08-11 | 1 | -5/+1 |
| | | | | SVN-Revision: 22593 | ||||
* | uhttpd: add option to reject requests from RFC1918 IPs to public server IPs ↵ | Jo-Philipp Wich | 2010-08-11 | 7 | -2/+38 |
| | | | | | | (DNS rebinding countermeasure) SVN-Revision: 22589 | ||||
* | uhttpd: fix build dependencies (#7674) | Jo-Philipp Wich | 2010-07-27 | 1 | -0/+1 |
| | | | | SVN-Revision: 22404 | ||||
* | uhttpd: - fix a compile warning - support custom index file names - support ↵ | Jo-Philipp Wich | 2010-07-23 | 7 | -18/+139 |
| | | | | | | custom error pages (or cgi handler) - add option to disable directory listings - add REDIRECT_STATUS for CGI requests, fixes php-cgi SVN-Revision: 22366 | ||||
* | uhttpd: - fix incorrect parsing of multiple listen options (#7458) - support ↵ | Jo-Philipp Wich | 2010-06-12 | 3 | -3/+14 |
| | | | | | | PEM certificates for SSL SVN-Revision: 21762 | ||||
* | bump release number for packages ahead of backfire in trunk | Nicolas Thill | 2010-05-23 | 1 | -1/+1 |
| | | | | SVN-Revision: 21556 | ||||
* | uhttpd: use uci_get() wrapper (#7312) | Jo-Philipp Wich | 2010-05-17 | 1 | -1/+1 |
| | | | | SVN-Revision: 21492 | ||||
* | uhttpd: - ignore authentication realms that refer to user accounts with no ↵ | Jo-Philipp Wich | 2010-04-24 | 4 | -6/+10 |
| | | | | | | 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 | ||||
* | uhttpd: fix bug in path canonization introduced by r20883 | Jo-Philipp Wich | 2010-04-15 | 1 | -2/+3 |
| | | | | SVN-Revision: 20885 | ||||
* | uhttpd: - make network timeout configurable, increase default to 30 seconds ↵ | Jo-Philipp Wich | 2010-04-15 | 8 | -82/+186 |
| | | | | | | (#7067) - follow symlinks in docroot and add option to disable that - fix mimetype detection for files with combined extensions (.tar.gz, ...) SVN-Revision: 20883 | ||||
* | uhttpd: - cope with options instead of lists in uci config - fix compilation ↵ | Jo-Philipp Wich | 2010-04-03 | 3 | -16/+13 |
| | | | | | | without tls (#7050) - bump to rev 7 SVN-Revision: 20668 | ||||
* | uhttpd: fix a signal related race condition exposed by LuCI on fast machines | Jo-Philipp Wich | 2010-03-29 | 3 | -3/+7 |
| | | | | SVN-Revision: 20573 | ||||
* | uhttpd: fix parameter parsing issue on avr32 and most likely ixp4xx | Jo-Philipp Wich | 2010-03-28 | 2 | -2/+3 |
| | | | | SVN-Revision: 20532 | ||||
* | uhttpd: block SIGCHLD until it is expected (#6957) | Jo-Philipp Wich | 2010-03-27 | 6 | -4/+33 |
| | | | | SVN-Revision: 20513 |