Skip to content

Autolinker autolinks anything with a dot in it #26476

@Montg0mery

Description

@Montg0mery

Description:

Any text in a chat message with a dot in it, such as "System.exit()" will get autolinked by Rocket Chat, even though the default settings imply that it should only autolink scheme URLs, www URLs, TLD URLs, emails, and phone numbers. "System.exit" is none of those, for example.

Steps to reproduce:

  1. Type asdf.asdf into a chat message and send
  2. Observe that it has been autolinked by Rocket Chat

Expected behavior:

No autolink except for text which matches one of the above-mentioned settings (e.g. with a scheme, or with www, or with a well-known TLD).

Actual behavior:

Anything with a dot gets autolinked, even things that are clearly not links.

Server Setup Information:

  • Version of Rocket.Chat Server: 5.0.1
  • Operating System: Ubuntu
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:

Client Setup Information

  • Desktop App or Browser Version: browser
  • Operating System:

Additional context

Screenshot:

image

Relevant logs:

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions