Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Web page address does not turn into link automatically, when the link contains parenthesis.
example: http://en.wikipedia.org/wiki/Insert_(SQL)
Comment | File | Size | Author |
---|---|---|---|
#2 | filter-url-paren-188948-2.patch | 1.85 KB | cburschka |
Comments
Comment #1
cburschkaThis is a filter issue and has nothing to do with comment.module.
Comment #2
cburschkaThe regular expression that matches URLs does not consider the parenthesis a valid character. I have changed this in the following patch, and the links work, but I haven't exhaustively tested for side effects yet.
Comment #3
grndlvl CreditAttribution: grndlvl commentedI independently came up with same solution. Submitted patch works.
Comment #4
grndlvl CreditAttribution: grndlvl commenteddid not mean to change module
Comment #5
Gábor HojtsyI think the role of not allowing parenthesis, is to be able to have URLs at end of sidenotes (like this http://...). If the parenthesis is part of the URL, here the closing parenthesis, and even the dot after it (by the looks of the patch) will be part of the URL.
If you check wikipedia pages, they link to URLs such as /wiki/Drop_%28SQL%29