Skip to content

Quotes in Name field on admin page disappear #40

@dtiburon

Description

@dtiburon

I noticed when I first put quotes around Skud's name on WFS that the first quote and all the text that appears after it disappears when the Admin page next loads. And as a consequence of that, if you don't add it back, then when you next save changes, it'll save the name without the text after the quotes.

I dug into it a bit today when I was fixing an issue with escaped apostrophes in the name field. It is not fixed by escaping the quotes. Looking at the DOM in Chrome Developer Tools, it seems to be related to the form field code. The value= wraps the string in double quotes, so when it sees double quotes it thinks the string has ended.

In the example below, I typed in the phrase Skud "missile" test and then submitted the change. This is what appeared on the admin page when it next loaded.

screen shot 2013-07-29 at 12 15 50 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions