friendica / friendica

Friendica Communications Platform
https://friendi.ca
GNU Affero General Public License v3.0
1.42k stars 333 forks source link

Auto-linking in a post can't handle parentheses #6095

Closed realkinetix closed 5 years ago

realkinetix commented 5 years ago

Expected behavior

Posting a URL such as https://en.wikipedia.org/wiki/Solid_(web_decentralization_project) should link to the whole text.

Actual behavior

Link stops at the first parenthesis - ie, the link becomes: https://en.wikipedia.org/wiki/Solid_

Steps to reproduce the problem

Copy such a link to your post, even preview mode will display the problem. Reference that made me check up on this: https://social.isurf.ca/display/ec054ce7-825b-dd58-c974-351350086299

Friendica version you encountered the problem

2018-09 stable

Friendica source (git, zip)

git

PHP version

7.2.9

SQL version

10.1.35

AlfredSK commented 5 years ago

Happens on 2018.12-dev too. Possible workaround: BBCode tags. [url]https://en.wikipedia.org/wiki/Solid_(web_decentralization_project)[/url]

MrPetovan commented 5 years ago

Duplicate of #2487 as it's about the autolinker regular expression.

nupplaphil commented 5 years ago

fixed by #6835