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

Quotes in Name field on admin page disappear #40

Open
dtiburon opened this issue Jul 28, 2013 · 0 comments
Open

Quotes in Name field on admin page disappear #40

dtiburon opened this issue Jul 28, 2013 · 0 comments
Labels

Comments

@dtiburon
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant