[squid-users] Re: strange directories bug

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 25 Oct 2001 00:21:25 +0200

For a start, URL's cannot contain spaces. If they do these must be
written as %20

Second, how Squid reacts if there is spaces in the URL even if not
allowed is controlled from squid.conf. The default is to deny such URL's
with an "Invalid request" error message.

uri_whitespace

        What to do with requests that have whitespace characters in the
        URI. Options:

        strip: The whitespace characters are stripped out of the URL.
                This is the behavior recommended by RFC2616.
        deny: The request is denied. The user receives an "Invalid
                Request" message.
        allow: The request is allowed and the URI is not changed. The
                whitespace characters remain in the URI. Note the
                whitespace is passed to redirector processes if they
                are in use.
        encode: The request is allowed and the whitespace characters are
                encoded according to RFC1738. This could be considered
                a violation of the HTTP/1.1
                RFC because proxies are not allowed to rewrite URI's.
        chop: The request is allowed and the URI is chopped at the
                first whitespace. This might also be considered a
                violation.

If set to "chop" then the symptoms you are describing will be seen.

cityhunter x-y-z wrote:
>
> hello,
> i've recently encountered a problem accessing strange ftp
> directories such as
> /pub/hello / / /something
> it seems that the main problem comes from presence of space
> char : squid attempt to cd "hello" instead of "hello "
> and idem for / / directories
>
> could you fix it? thanks
>
> ``Only those who attempt the absurd can achieve the impossible.''
> ICQ : 127532893
> _________________________________________________________
> Le journal des abonnés Caramail - http://www.carazine.com
Received on Wed Oct 24 2001 - 17:25:10 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:07 MST