You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/21 20:55:05 UTC

[jira] [Commented] (VCL-888) problem with translations containing single quotes

    [ https://issues.apache.org/jira/browse/VCL-888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14635604#comment-14635604 ] 

ASF subversion and git services commented on VCL-888:
-----------------------------------------------------

Commit 1692183 from [~jfthomps] in branch 'vcl/trunk'
[ https://svn.apache.org/r1692183 ]

VCL-888 - problem with translations containing single quotes

utils.php: added escq - replaces single quotes with &#39;

requests.php: modified locations where translated strings could be sent as javascript in AJupdateWaitTime, printImageDescription, and AJnewRequest to call escq on the translated string

> problem with translations containing single quotes
> --------------------------------------------------
>
>                 Key: VCL-888
>                 URL: https://issues.apache.org/jira/browse/VCL-888
>             Project: VCL
>          Issue Type: Bug
>          Components: web gui (frontend)
>            Reporter: Josh Thompson
>
> There are parts of the code where a string is sent in single quotes as javascript in response to an AJAX call. If the string is translated into something that contains single quotes, javascript throws an error. The translated string needs to have single quotes escaped.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)