Re: [squid-users] Initial webpage before surfing on squid

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 12 Apr 2009 15:17:01 +1200

Jorge Bastos wrote:
> Chris,
> I was doing some tests to see the value that is passed by the %s variable,
> and the value that goes to the output is:
>
> ---
> http://195.23.114.74/inicial.php?url=http%3A%2F%2F195.23.114.74%2Finicial.ph
> p%3Furl%3Dhttp%253A%252F%252F195.23.114.74%252Finicial.php%253Furl%253Dhttp%
> 25253A%25252F%25252F195.23.114.74%25252Finicial.php%25253Furl%25253Dhttp%252
> 5253A%2525252F%2525252Fhotmail.com%2525252F
> ---
> deny_info http://195.23.114.74/inicial.php?url=%s session
> ---
>
> The code inside inicial.php is:
>
> <?php
> echo $_GET["url"];
> ?>
>
> Shouldn't I get the clean value of the site I've entered first,
> "http://hotmail.com" ?
>

Try this:

   echo rawurldecode($_GET['url']);

Its a little weird that the redirect URL is being added as the sub-URI.
Are you sure your http_access are permitting access to the splash URI
before checking the session handler?

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
   Current Beta Squid 3.1.0.6
Received on Sun Apr 12 2009 - 02:17:00 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 12 2009 - 12:00:03 MDT