Skip to content

Link creates span element with massive class attribute #7039

@raybellis

Description

@raybellis

Describe the bug
We've ended up with a pad with a link whose HTML ends up looking like this with a class attribute over 1MB in length:

<span class="url-url-url-url-url-url-url-url-url-url-url-url-url-url-url-url-url-url-,,url-,,url-url-,,url-,,url-url-url-,,url-,,url-url-,,url-,,url-url-url-url-,,url-,,url-url-,,url-,,url-url-url-,,url-,,url-url-,,url-,,url-url-url-url-url-,,url-,,url-url-,,url-,,url-url...........

We only noticed this because attempting to copy this pad (with copy and paste) into a new one caused the receiving pad to lose its socket connection (without any logged error) and forcibly reconnect, repeatedly.

To Reproduce
We don't have a reproduction for this.

Expected behavior
It should work ;)

Screenshots

Server (please complete the following information):

  • Etherpad version: 2.25
  • OS: FreeBSD 14.2
  • Node.js version (node --version): 22.16.0
  • npm version (npm --version): 10.9.2
  • Is the server free of plugins: not currently

Desktop (please complete the following information):

  • OS: [e.g. iOS] macOS
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 137.0.7151.104

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions