Issue with generating title over token of field with value containing quotes and double quotes

Created on 6 October 2022, over 2 years ago
Updated 1 March 2023, about 2 years ago

Problem/Motivation

There is problem with generating title over token of field which value contains quotes and double quotes.

Steps to reproduce

1. Make sure there is text field in node type which can be used for source of value for the title.
2. got to /admin/structure/types/manage/[node-type]
3. in Autotitle section check "Enable automatic title"
4. Find token of the field and place to "Fallback title" and save configuration
5. Go to create/update form of the node type
6. And to the field some text containing quotes and/or double quotes
7. Save the node
8. As result node title will be generated containing "'" and/or """
See attached screenshots.

Proposed resolution

in presave of node after replacing tokens add decoding of quotes

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine alunyov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024