|
Posted by Andy Hassall on 07/13/06 18:34
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
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|