nextcloud / nextcloud/server

[Bug]: Encoding issue on the default sharing folder filepicker

Open
#55,191 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 31-feedback bug
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

If you choose a folder having the character ' in his name as a default folder for receiving shares, the name on the submit button is HTML entity encoded (')

Image
Steps to reproduce
  1. Create a folder having an apostrophe on his name (like "aujourd'hui")
  2. Go to https://yourcloud.com/index.php/settings/user/sharing
  3. Define the folder "aujourd'hui" as default folder for receiving shares.
  4. Look at the submit button of the file picker.
Expected behavior

Submit button should not show html entity code

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
not relevant for this bug
List of activated Apps
not relevant for this bug
Nextcloud Signing status
not relevant for this bug
Nextcloud Logs
not relevant for this bug
Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the settings page entry point /index.php/settings/user/sharing and reproduce the problem with a folder named aujourd'hui. Trace how the filepicker's submit-button label is populated for the selected default receiving folder. Done means the button displays the apostrophe normally instead of the ' entity.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.