From: Paul Lesniewski <paul@sq...> - 2008-07-02 02:28:23
On Mon, Jun 30, 2008 at 8:28 AM, chris <chris@...> wrote:
> We are currently having an issue with URL formatting in Squirremail when a
> plain text message is opened the URL link is not properly displayed so a
> user can click on it an take them to the full URL destination. The
> highlighting stops when Squirrelmail comes across the ( or ) in the URL.
> Here is an example of the URL:
> The characters () seem to be valid according to RFC 1738
It's not just a matter of RFC in the case of webmail. The problem is
that a lot of people put URIs in an assortment of places in their
emails... for example, in parenthesis
(http://en.wikipedia.org/wiki/Parenthesis) or other places that make
parsing the URI out of the email text challenging to say the least.
> No matter where in the link you move the ( or ) character the displaying of
> the URL in Squirrelmail stops at the characters.
> Has anyone else seen this behavior or know how to fix the problem?
You can "fix" the issue by opening functions/url_parser.php and find
the line where $url_parser_poss_ends is defined (probably line 84),
and remove both "(" and ")" from that list.
> Here is the server versions:
> OS version: Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
> Mysql version: mysql Ver 14.7 Distrib 4.1.20
> PHP version: PHP 4.3.9
> Squirrelmail version: squirrelmail-1.4.13