<span id="_user_cb@df7cb.de" style="color: rgb(0, 104, 28);">Christoph,<br><br>You are awesome for both identifying and fixing the problem.  Thank you so much for supplying this to me =)<br><br>Josh<br></span><br><div><span class="gmail_quote">On 3/19/08, <b class="gmail_sendername">Christoph Berg</b> <<a href="mailto:cb@df7cb.de">cb@df7cb.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br> <br> one of our customers wanted a content check for a URL looking roughly<br> like:<br> <br> <a href="http://100.1.2.3:8080/httpserver/httpserver/isalive.jsp?password=aaa">http://100.1.2.3:8080/httpserver/httpserver/isalive.jsp?password=aaa</a><br>
 <br> Hobbit barfs on the "/http" in there and thinks this is http check<br> with a proxy URL. The following patch fixes this:<br> <br> --- a/lib/url.c<br> +++ b/lib/url.c<br> @@ -563,7 +563,9 @@ char *decode_url(char *testspec, bburl_t<br>
        if (poststart) getescapestring(poststart, &bburl->postdata, NULL);<br>        if (expstart)  getescapestring(expstart, &bburl->expdata, NULL);<br> <br> -       p = strstr(urlstart, "/http");<br>
 +       p = strstr(urlstart, "/http://");<br> +       if (!p)<br> +               p = strstr(urlstart, "/https://");<br>        if (p) {<br>                proxystart = urlstart;<br>                urlstart = (p+1);<br>
 <br> <br> Christoph<br> <br>--<br> <a href="mailto:cb@df7cb.de">cb@df7cb.de</a> | <a href="http://www.df7cb.de/">http://www.df7cb.de/</a><br> <br>-----BEGIN PGP SIGNATURE-----<br> Version: GnuPG v1.4.6 (GNU/Linux)<br> <br>
 iD8DBQFH4T/Qxa93SlhRC1oRAm3xAJoChqrBRCxdo0wRMkUAOv4DwaQAaQCggjcz<br> kyOWGzRW/N4FYLnC9UsixEU=<br> =yC9F<br> -----END PGP SIGNATURE-----<br> <br></blockquote></div><br><br clear="all"><br>-- <br>Josh Luthman<br>Office: 937-552-2340<br>
Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.<br>--- Henry Spencer