summaryrefslogtreecommitdiffstats
path: root/package/uhttpd
Commit message (Collapse)AuthorAgeFilesLines
* [package] uhttpd:jow2012-05-2818-1323/+2567
| | | | | | | | | | | - rewrite large parts of the server, use uloop event driven structure - support concurrent requests and make the upper limit configurable - implement initial version of HTTP-to-ubus JSON proxy and session.* namespace - add compile time support for debug information - code style changes - bump package revision git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31931 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: display errors in init script, code formatting changes, ↵jow2012-05-037-496/+535
| | | | | | bump package version git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31572 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uhttpd: added uhttpd.docrootjow2012-05-034-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31571 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fixed: [PATCH 2/3] uhttpd URL-codec enhancements.jow2012-05-033-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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31570 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uhttpd URL-codec bug fixes.jow2012-05-031-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31569 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: reorder compiler flags to fix native build on Ubuntu 11.xjow2012-03-131-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: cope with variable number of spaces in header lines (#11079)jow2012-03-042-5/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30806 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: prevent linking uhttpd binary against crypto librariesjow2011-11-151-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29152 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: cope with DES crypted passwd entries by not relying on a ↵jow2011-11-092-6/+3
| | | | | | leading dollar sign to indicate a cipher git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28886 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/uhttpd: use new service wrappernico2011-11-072-11/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28841 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: provide rpath-link flag, thanks mazilojow2011-11-071-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* uhttpd: Fix wrong certificate options with multiple wordsjow2011-11-061-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix Makefiles and linking of tls pluginjow2011-11-052-7/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28769 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: bump versionjow2011-11-051-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28762 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: rework CyaSSL and OpenSSL integration; move protected ↵jow2011-11-055-51/+210
| | | | | | recv() and send() operations below the ssl layer - fixes hangs when accessing via https git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28761 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix bad pointer use in previous commitjow2011-09-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28257 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix possible CGI header line parsing beyound the empty ↵jow2011-09-182-5/+5
| | | | | | line, thanks Linus Luessing for spotting it git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28254 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: properly match mimetype entries which cover the whole ↵jow2011-09-042-3/+3
| | | | | | filename (#8236) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28160 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: add "application/x-ns-proxy-autoconfig" mime type (#8236)jow2011-09-022-1/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28149 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: pass feature flags (#9742)jow2011-07-191-1/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27689 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: support building against openssl instead of cyassl, minor ↵jow2011-07-186-27/+98
| | | | | | cleanups (#7827) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27686 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: unblock signals in CGI childs, solves hanging ssh logout ↵jow2011-07-173-3/+13
| | | | | | after server restart from within LuCI and similar problems git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27628 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: Moved uhttpd to Network|Web Servers/Proxies submenu, just ↵cshore2011-03-121-0/+1
| | | | | | like all the other web serves and proxies from the packages feed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26062 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: substitute "+" with space when using the -d flag, lazyload ↵jow2011-01-282-41/+61
| | | | | | tls support git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25220 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: protect tcp receive operations with select, make tcp ↵jow2011-01-096-22/+54
| | | | | | keep-alive optional (#8272) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24952 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: allow lowercase http header fields (#8513)jow2010-12-242-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: redirect to same location with trailing slash appended if ↵jow2010-11-104-5/+22
| | | | | | directories are requested git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23952 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: make it work without shadow password supportjow2010-11-063-2/+18
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23897 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: revert unrelated change in previous commitjow2010-10-051-3/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23261 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: add /etc/uhttpd.key and /etc/uhttpd.crt to conffile hintsjow2010-10-052-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23260 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] add maintainer informationjow2010-09-301-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23159 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: break tight loop when receiving eof during header reading ↵jow2010-09-092-1/+5
| | | | | | (#7904) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22988 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix segfault triggered by Basic Auth checkingjow2010-08-252-3/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22805 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-08-188-108/+141
| | | | | | | | | - 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22692 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-08-1410-255/+364
| | | | | | | | | - 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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22630 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix segmentation fault triggered by invalid header linejow2010-08-121-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22607 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-08-113-44/+50
| | | | | | | | - abort file serving if client connection is lost (#7742) - don't send bad request headers twice git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22602 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: make init script less verbosejow2010-08-111-5/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22593 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: add option to reject requests from RFC1918 IPs to public ↵jow2010-08-117-2/+38
| | | | | | server IPs (DNS rebinding countermeasure) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22589 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix build dependencies (#7674)jow2010-07-271-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22404 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-07-237-18/+139
| | | | | | | | | | | - 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22366 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-06-123-3/+14
| | | | | | | | - fix incorrect parsing of multiple listen options (#7458) - support PEM certificates for SSL git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21762 3c298f89-4303-0410-b956-a3cf2f4a3e73
* bump release number for packages ahead of backfire in trunknico2010-05-231-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21556 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: use uci_get() wrapper (#7312)jow2010-05-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21492 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-04-244-6/+10
| | | | | | | | | - 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21121 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix bug in path canonization introduced by r20883jow2010-04-151-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20885 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-04-158-82/+186
| | | | | | | | | - 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, ...) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20883 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd:jow2010-04-033-16/+13
| | | | | | | | | - cope with options instead of lists in uci config - fix compilation without tls (#7050) - bump to rev 7 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20668 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix a signal related race condition exposed by LuCI on ↵jow2010-03-293-3/+7
| | | | | | fast machines git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20573 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] uhttpd: fix parameter parsing issue on avr32 and most likely ixp4xxjow2010-03-282-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20532 3c298f89-4303-0410-b956-a3cf2f4a3e73