Jo-Philipp Wich bcd8d530d1 Fixed: [PATCH 2/3] uhttpd URL-codec enhancements.
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
2016-03-20 20:05:13 +01:00
..
2012-03-19 21:10:04 +00:00
2011-03-07 12:59:19 +00:00
2012-03-18 19:46:52 +00:00
2012-04-02 16:25:40 +00:00
2012-04-28 19:54:54 +00:00
2012-01-30 14:02:10 +00:00
2012-02-08 10:20:13 +00:00
2009-06-13 16:47:22 +00:00
2012-02-14 20:13:28 +00:00
2010-04-23 11:27:29 +00:00
2012-02-27 23:08:15 +00:00
2009-12-19 22:19:42 +00:00
2012-03-25 08:50:42 +00:00
2011-07-10 10:40:37 +00:00
2010-09-30 10:48:37 +00:00
2012-05-02 15:40:32 +00:00
2012-02-14 15:05:52 +00:00
2012-03-25 08:51:16 +00:00
2012-05-03 13:29:36 +00:00
2012-03-18 21:08:39 +00:00
2010-09-30 10:48:37 +00:00
2011-07-17 22:47:56 +00:00
2010-10-27 21:24:06 +00:00
2012-03-25 08:51:13 +00:00
2011-12-06 16:00:00 +00:00
2012-04-28 19:54:54 +00:00
2012-01-30 14:02:13 +00:00