Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninterpreted HTML in warning message of settings import #14908

Closed
ibennetch opened this issue Jul 29, 2018 · 7 comments
Closed

Uninterpreted HTML in warning message of settings import #14908

ibennetch opened this issue Jul 29, 2018 · 7 comments
Assignees
Labels
Bug A problem or regression with an existing feature ui Issues relating to the user interface
Milestone

Comments

@ibennetch
Copy link
Member

Using QA_4_8, I exported my settings, then tried to import them again. I got a warning message stating that some settings were invalid, and they included some literal <i> and </i> rather than rendering the text in italics.

image

@MauricioFauth
Copy link
Member

I don't think this is a security issue, because it is either a predetermined message or the message will be sanitized.
I believe this was introduced by 729349d. Twig automatically escapes the outputs, and that has not been disabled in this case.

@ibennetch
Copy link
Member Author

I was probably cautious about how to report it but can move this issue to the bug tracker. Thanks.

@ibennetch ibennetch transferred this issue from another repository Jan 26, 2019
@bahl24
Copy link
Contributor

bahl24 commented Jan 29, 2019

@ibennetch I wasn't able to reproduce the issue, can you give detailed testing instructions?

@williamdes williamdes added the ui Issues relating to the user interface label Jan 29, 2019
@kartik1000
Copy link
Contributor

@MauricioFauth can't we use the raw filter of twig in {{error}} part?

@ibennetch
Copy link
Member Author

I missed the question from @bahl24 earlier, but I've seen it now. To reproduce (you may need to first have defined some custom setting in this settings tab):

Go to the Settings tab of the main page. The default tab is "Manage your settings". From "Export" pick "Save as file" (which should be "Save as JSON file", see #15115) - or create a custom JSON file from my example below. Save the JSON file to your local computer.

Now go to the "Import" area and "Browse" to the file you just downloaded, then press "Go" to begin the import. This message is shown afterwards.

My JSON file that reveals this problem:

{
    "NavigationLogoLink": "\/example.php",
    "Export\/method": "custom",
    "RowActionLinksWithoutUnique": true,
    "InitialSlidersState": "open",
    "Console\/Mode": "collapse",
    "Server\/hide_db": "",
    "Server\/only_db": ""

@williamdes williamdes added the Bug A problem or regression with an existing feature label Apr 27, 2019
@williamdes williamdes added this to the 4.8.6 milestone Apr 27, 2019
@williamdes williamdes self-assigned this Apr 27, 2019
@williamdes
Copy link
Member

Fixed by 2a4729c
I missed the issue when creating the fix and the initial changelog entry

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature ui Issues relating to the user interface
Projects
None yet
Development

No branches or pull requests

5 participants