(Behaviour observed on drupal.org, which I'm guessing is 6.26? Anyway.)

The "Web page addresses and e-mail addresses turn into links automatically" filter appears to be considering linebreaks and other unexpected characters to be part of the address in some conditions. This only seems to happen in <?php ?> or <code> blocks. See for example (spotted in #1507772: Blocked user https://drupal.org/user/1871844 for contact form spam):

If you don't want to receive such e-mails, you can change your settings at https://drupal.org/user/1632634.
Message:
Hi,
We are looking for a software engineer with Drupal experience. This is a long term full-time remote position.
Among other projects, we are building an online crowdfunding marketplace for open source software.

Here the link is being extended to cover a period, comma, colon and three linebreaks, all of which are also being included in the link HREF. This is causing additional conflict in the case of a PHP block, as the PHP filter escapes the HTML of the link - leaving the linebreaks as <br>, which causes the link to be split over multiple lines. See #1644662: Links in comment as PHP code breaking the syntax for more on this interaction.

Comments

kingandy’s picture

Actually, considering this only happens with PHP or Code, I guess maybe this belongs in the module that handles that? I don't know what module that is, though, so if somebody could redirect this accordingly I'd be obliged.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.