Skip to content

[Bug]: File Request: "Enter your name" dialog displays HTML-encoded subject when special characters are used #60163

@1358

Description

@1358

Steps to reproduce

Nextcloud version: master

  1. Go to Files and create a new File Request.
  2. In the "Subject" field, enter a string containing a special character, e.g. an apostrophe: Submissions for XYZ's event
  3. Save the file request and copy the generated share link.
  4. Open the share link (e.g. in a private/incognito window or a different browser).
  5. Observe the subject shown in the "enter your name" dialog — the initial prompt shown to the recipient before they can upload files.

Expected behaviour

The dialog heading and info box show the subject exactly as entered:

  • Heading: Upload files to Submissions for XYZ's event
  • Info box: To upload files to Submissions for XYZ's event, you must first enter your name.

Actual behaviour

The dialog heading and info box display the HTML-encoded version of the subject:

  • Heading: Upload files to Submissions for XYZ's event
  • Info box: To upload files to Submissions for XYZ's event, you must first enter your name.
Image

Additional information

The issue is exclusively limited to the "enter your name" dialog. The underlying file management view — where the uploaded files actually appear — correctly displays the subject with the original characters. This suggests the subject string is being HTML-encoded before being passed to the dialog template, rather than being escaped only at render time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions