[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Gombert updated MAGNOLIA-3721:
--------------------------------------

    Description: 
Using dialog multiselect to manage a list of labels (no choose button) will 
fail if a label contains a single quote (') as it is not escaped in JSON string.

Fixing this bug seems simple : just escape single quotes in method getJSON() of 
class DialogMultiSelect
Line 199: {value = value.replaceAll("\\'", "\\\\\\'");}


  was:
Using dialog multiselect to manage a list of labels (no choose button) will 
fail if a label contains a single quote (') as it is not escaped in JSON string.

Fixing this bug seems simple : just escape single quotes in method getJSON() of 
class DialogMultiSelect
Line 199: value = value.replaceAll("\\'", "\\\\\\'");



> Dialog multiselect does not escape single quotes
> ------------------------------------------------
>
>                 Key: MAGNOLIA-3721
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3721
>             Project: Magnolia
>          Issue Type: Bug
>          Components: gui
>    Affects Versions: 4.4.3
>            Reporter: Vincent Gombert
>
> Using dialog multiselect to manage a list of labels (no choose button) will 
> fail if a label contains a single quote (') as it is not escaped in JSON 
> string.
> Fixing this bug seems simple : just escape single quotes in method getJSON() 
> of class DialogMultiSelect
> Line 199: {value = value.replaceAll("\\'", "\\\\\\'");}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to