13 Jan 2010 14:26
Re: Patch for mailto: link urlencoding
Michael A. Puls II <shadow2531 <at> gmail.com>
2010-01-13 13:26:32 GMT
2010-01-13 13:26:32 GMT
On Wed, 13 Jan 2010 08:00:18 -0500, Michael A. Puls II
<shadow2531 <at> gmail.com> wrote:
> On Wed, 13 Jan 2010 07:48:13 -0500, Michael A. Puls II
> <shadow2531 <at> gmail.com> wrote:
>
>> On Tue, 12 Jan 2010 13:58:59 -0500, Jon Nathan
>> <jon+dated+1263754739.7d78aa <at> rupture.net> wrote:
>>
>>> Thanks for your feedback. What do you think the appropriate way
>>> to adress this is? I'd hate to only urlencode specific characters.
>>
>> I think the relevant code is actually in parseUrl() in
>> functions/url_parser.php.
>>
> In url_parser.php, in parseUrl, after:
> $mailto = substr($body, $target_pos, $end-$target_pos);
> add this line:
> $mailto = preg_replace("/\\+/", "%2B", $mailto);
> for example.
>
> That will fix things.
That does fix things, but it breaks some other things. The replacement of
the '+' characters causes the length to be longer, which messes up other
calculations down the code a bit. Will investigate.
--
--
Michael
(Continue reading)
RSS Feed