Re: http://1234567890 (fwd)

From: Martin Pool <mbp@dont-contact.us>
Date: Tue, 15 Aug 2000 16:07:45 +1000

On Tue, Aug 15, 2000 at 05:13:39AM +0200, Bert Driehuis wrote:
> On Mon, 14 Aug 2000, Duane Wessels wrote:
>
> > Squid could deal with this by returning a 302 with the
> > integer replaced with an IP address.... ?
>
> NOOOOOOOOO!
>
> Even though Berkeley's inet_addr routine has supported this dubious
> syntax forever, we shouldn't stoop down to bad decisions made in a
> distant past, especially when no-one in his right state of mind used
> them anyway (quiz: What's the full address that 10.11.12 translates to
> if fed to inet_addr?)

I noticed the other week that this `feature' is specifically
disallowed by rfc2553:

   If the af argument is AF_INET, the function accepts a string in the
   standard IPv4 dotted-decimal form:

      ddd.ddd.ddd.ddd

   where ddd is a one to three digit decimal number between 0 and 255.
   Note that many implementations of the existing inet_addr() and
   inet_aton() functions accept nonstandard input: octal numbers,
   hexadecimal numbers, and fewer than four numbers. inet_pton() does
   not accept these formats.

-- 
Martin Pool                        http://linuxcare.com.au/rproxy/
rproxy accelerates HTTP by dynamic caching and differential update

Received on Tue Aug 15 2000 - 00:08:23 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:34 MST