aboutsummaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd.c
Commit message (Collapse)AuthorAgeFilesLines
* uhttpd: fix wrongly applied sizeof() leading to writing beyound end of ↵Jo-Philipp Wich2012-05-301-2/+2
| | | | | | buffer and subsequent data corruption (#11557) SVN-Revision: 32005
* uhttpd: - rewrite large parts of the server, use uloop event driven ↵Jo-Philipp Wich2012-05-281-234/+348
| | | | | | 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 SVN-Revision: 31931
* uhttpd: display errors in init script, code formatting changes, bump package ↵Jo-Philipp Wich2012-05-031-159/+168
| | | | | | version SVN-Revision: 31572
* uhttpd: added uhttpd.docrootJo-Philipp Wich2012-05-031-1/+1
| | | | | | | | | | | | | 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 Wich2016-03-201-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: cope with variable number of spaces in header lines (#11079)Jo-Philipp Wich2012-03-041-3/+6
| | | | SVN-Revision: 30806
* uhttpd: support building against openssl instead of cyassl, minor cleanups ↵Jo-Philipp Wich2011-07-181-1/+16
| | | | | | (#7827) SVN-Revision: 27686
* uhttpd: unblock signals in CGI childs, solves hanging ssh logout after ↵Jo-Philipp Wich2011-07-171-1/+1
| | | | | | server restart from within LuCI and similar problems SVN-Revision: 27628
* uhttpd: substitute "+" with space when using the -d flag, lazyload tls supportJo-Philipp Wich2011-01-281-40/+60
| | | | SVN-Revision: 25220
* uhttpd: protect tcp receive operations with select, make tcp keep-alive ↵Jo-Philipp Wich2011-01-091-14/+21
| | | | | | optional (#8272) SVN-Revision: 24952
* uhttpd: allow lowercase http header fields (#8513)Jo-Philipp Wich2010-12-241-2/+2
| | | | SVN-Revision: 24823
* uhttpd: redirect to same location with trailing slash appended if ↵Jo-Philipp Wich2010-11-101-2/+1
| | | | | | directories are requested SVN-Revision: 23952
* uhttpd: revert unrelated change in previous commitJo-Philipp Wich2010-10-051-3/+1
| | | | SVN-Revision: 23261
* uhttpd: add /etc/uhttpd.key and /etc/uhttpd.crt to conffile hintsJo-Philipp Wich2010-10-051-1/+3
| | | | SVN-Revision: 23260
* uhttpd: break tight loop when receiving eof during header reading (#7904)Jo-Philipp Wich2010-09-091-0/+4
| | | | SVN-Revision: 22988
* uhttpd: - fix parsing of interpreter entries in the config file, fixes ↵Jo-Philipp Wich2010-08-181-25/+35
| | | | | | 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 Wich2010-08-141-184/+230
| | | | | | 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 lineJo-Philipp Wich2010-08-121-1/+2
| | | | SVN-Revision: 22607
* uhttpd: - abort file serving if client connection is lost (#7742) - don't ↵Jo-Philipp Wich2010-08-111-7/+0
| | | | | | send bad request headers twice SVN-Revision: 22602
* uhttpd: add option to reject requests from RFC1918 IPs to public server IPs ↵Jo-Philipp Wich2010-08-111-1/+14
| | | | | | (DNS rebinding countermeasure) SVN-Revision: 22589
* uhttpd: - fix a compile warning - support custom index file names - support ↵Jo-Philipp Wich2010-07-231-9/+79
| | | | | | 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 Wich2010-06-121-0/+1
| | | | | | PEM certificates for SSL SVN-Revision: 21762
* uhttpd: - ignore authentication realms that refer to user accounts with no ↵Jo-Philipp Wich2010-04-241-2/+2
| | | | | | 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: - make network timeout configurable, increase default to 30 seconds ↵Jo-Philipp Wich2010-04-151-17/+37
| | | | | | (#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 Wich2010-04-031-0/+2
| | | | | | without tls (#7050) - bump to rev 7 SVN-Revision: 20668
* uhttpd: fix parameter parsing issue on avr32 and most likely ixp4xxJo-Philipp Wich2010-03-281-1/+1
| | | | SVN-Revision: 20532
* uhttpd: block SIGCHLD until it is expected (#6957)Jo-Philipp Wich2010-03-271-1/+9
| | | | SVN-Revision: 20513
* uhttpd: - make script timeout configurable - catch SIGCHLD to properly ↵Jo-Philipp Wich2010-03-271-1/+26
| | | | | | interrupt select() - flag listen and client sockets as close-on-exec SVN-Revision: 20500
* add uhttpd (moved from LuCI trunk)Jo-Philipp Wich2010-03-251-0/+899
SVN-Revision: 20428