Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B38AD6427 for ; Mon, 16 May 2011 18:57:31 +0000 (UTC) Received: (qmail 21281 invoked by uid 500); 16 May 2011 18:57:30 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 21137 invoked by uid 500); 16 May 2011 18:57:30 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 21130 invoked by uid 99); 16 May 2011 18:57:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 18:57:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2011 18:57:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3A6A3CC2B0 for ; Mon, 16 May 2011 18:56:48 +0000 (UTC) Date: Mon, 16 May 2011 18:56:48 +0000 (UTC) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Message-ID: <264609716.16149.1305572208236.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1556989509.14325.1305504347441.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2520) JSONResponseWriter w/json.wrf can produce invalid javascript depending on unicode chars in response data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034197#comment-13034197 ] Yonik Seeley commented on SOLR-2520: ------------------------------------ It looks like we already escape \u2028 (see SOLR-1936), so we should just do the same for \u2029? > JSONResponseWriter w/json.wrf can produce invalid javascript depending on unicode chars in response data > -------------------------------------------------------------------------------------------------------- > > Key: SOLR-2520 > URL: https://issues.apache.org/jira/browse/SOLR-2520 > Project: Solr > Issue Type: Bug > Affects Versions: 4.0 > Reporter: Benson Margulies > > Please see http://timelessrepo.com/json-isnt-a-javascript-subset. > If a stored field contains invalid Javascript characters, and you use the query option to ask for jsonp, solr does *not* escape some invalid Unicode characters, resulting in strings that explode on contact with browsers. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org