https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412008-09-04T20:52:07Zlighty labsLighttpd - Bug #946: URL encoding leads to "400 - Bad Request"https://redmine.lighttpd.net/issues/946?journal_id=22032008-09-04T20:52:07ZAnonymous
<ul></ul><p>can confirm this is still the case in 1.5 rev 2140</p> Lighttpd - Bug #946: URL encoding leads to "400 - Bad Request"https://redmine.lighttpd.net/issues/946?journal_id=22042008-09-04T22:17:08ZAnonymous
<ul></ul><p>stbuehler (IRC) took a look at this today, this seems to have fixed it (i myself have done min testing at this stage - very quick test on 1.5)</p>
<p>diff --git a/src/request.c b/src/request.c<br />index 4298873..4f83175 100644<br />--- a/src/request.c<br />+<ins>+ b/src/request.c<br /><code>@ -125,7 +125,7 </code>@ static int request_check_hostname(server <strong>srv, connection *con, buffer *host) {<br /> }<br /> } else if (i == 0) {<br /> /</strong> the first character of the hostname */<br />- if (!light_isalpha(c)) {<br /></ins> if (!light_isalnum(c)) {<br /> return -1;<br /> }<br /> label_len++;</p> Lighttpd - Bug #946: URL encoding leads to "400 - Bad Request"https://redmine.lighttpd.net/issues/946?journal_id=90632016-03-05T00:42:13Zgstrauss
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/9063/diff?detail_id=7021">diff</a>)</li></ul><p>Issue at least partially addressed in the following. Not sure if fully addressed.<br /><pre>
commit b87d3e804be04e79c1d3d8b5fc12dac06087dc7d
Author: Stefan Bühler <stbuehler@web.de>
Date: Tue Jul 14 12:57:27 2009 +0000
Allow digits in hostnames in more places (fixes #1148)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2586 152afb58-edef-0310-8abb-c4023f1b3aa9
</pre></p> Lighttpd - Bug #946: URL encoding leads to "400 - Bad Request"https://redmine.lighttpd.net/issues/946?journal_id=96452016-05-18T10:57:22Zgstrauss
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Patch Pending</i></li><li><strong>Assignee</strong> deleted (<del><i>jan</i></del>)</li><li><strong>Target version</strong> set to <i>1.4.40</i></li></ul> Lighttpd - Bug #946: URL encoding leads to "400 - Bad Request"https://redmine.lighttpd.net/issues/946?journal_id=96642016-05-23T05:40:06Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Patch Pending</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[config] opts for http header parsing strictness (fixes #551, fixes #1086, fixes #1184, fixes #21..." href="https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/b47494d4cda6dc1a152f9033e4617897842c2f50">b47494d4cda6dc1a152f9033e4617897842c2f50</a>.</p>