|
Posted by CB on 07/13/06 19:37
In article <b54db2loqti9o5ej9teu8jqmhtgefid6ok@4ax.com>,
Andy Hassall <andy@andyh.co.uk> wrote:
> On Wed, 12 Jul 2006 23:01:10 -0400, CB <xxa@zxx.com> wrote:
>
> >ARG! I was just trying to add a link to this formmail script. What
> >gives. Can't find any documentation concerning the '=' sign.
> >
> >Here's what I tried and what I got.
> >
> >$content .= "REMOTE ADDR:
> >http://ws.arin.net/cgi-bin/whois.pl?queryinput=". $REMOTE_ADDR."\n";
> >
> >result:
> >REMOTE ADDR: http://ws.arin.net/cgi-bin/whois.pl?queryinput$.88.95.11
> >
> >I'm sure there's a simple way to get the equal sign to print correctly.
> >THANKS.
>
> Your email is probably quoted-printable encoded, but you're assigning a plain
> unencoded string to it. quoted-printable uses "=" as a special character to
> mark the start of encoded characters - it's "=" followed by two hexadecimal
> digits representing the character code, which is why it's eating the = and the
> first two digits of the IP address. How to fix this depends on what you're
> using to send the email - you either need to actually encode your string, or
> tell your email function to use a different encoding header in the email.
>
> http://en.wikipedia.org/wiki/Quoted-printable
AWESOME, thanks
here's the correct line---
$content .= "REMOTE ADDR:
http://ws.arin.net/cgi-bin/whois.pl?queryinput\=3D". $REMOTE_ADDR."\n";
correct result!
REMOTE ADDR: http://ws.arin.net/cgi-bin/whois.pl?queryinput=27.88.95.11
Navigation:
[Reply to this message]
|